Closed slssun007 closed 8 years ago
"auto" inside lamdas is a c++14 feature. AMB 0.14 uses the same style @petr-nechaev is using. The bug may be not using -std=c++14. I'll check.
Looks like we are using -std=c++1y[1]. Your compiler may support some c++14 features, but perhaps is missing this one. What version of gcc are you using?
[1] - https://github.com/otcshare/automotive-message-broker/blob/master/CMakeLists.txt#L55
Thanks its working fine with petr-nechaev style.
On Fri, 30 Oct 2015 22:39 Kevron Rees notifications@github.com wrote:
Looks like we are using -std=c++1y[1]. Your compiler may support some c++14 features, but perhaps is missing this one. What version of gcc are you using?
[1] - https://github.com/otcshare/automotive-message-broker/blob/master/CMakeLists.txt#L55
— Reply to this email directly or view it on GitHub https://github.com/otcshare/automotive-message-broker/issues/62#issuecomment-152588978 .
Thanks its working fine with petr-nechaev style.
automotive-message-broker-master/lib/listplusplus.h:30:85: error: parameter declared ‘auto’ return std::any_of(iteratable.begin(), iteratable.end(), [value, &comparator](auto i) { return comparator(value, i); });