Opened 6 years ago
#12585 new Bugs
Functional fails to compile using Visual Studio 2015 Update 3
| Reported by: | Owned by: | No-Maintainer | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | functional |
| Version: | Boost 1.62.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
The following fails to compile due to several compiler errors when using Visual Studio 2015 Update 3, compiler option /std:c++latest.
#include <boost/functional.hpp>
int main()
{
}
A snippet of compiler errors:
1>d:\development\libs\boost_1_62_0\boost\functional.hpp(150): error C2143: syntax error: missing ',' before '<'
1> d:\development\libs\boost_1_62_0\boost\functional.hpp(163): note: see reference to class template instantiation 'boost::unary_negate<Predicate>' being compiled
1>d:\development\libs\boost_1_62_0\boost\functional.hpp(150): error C2518: keyword 'typename' illegal in base class list; ignored
Presumably this is because std::binary_function and std::unary_function are removed from c++17.
