Opened 6 years ago
Last modified 5 years ago
#12586 new Bugs
String algorithm fails to compile using Visual Studio 2015 Update 3
Reported by: | Owned by: | Marshall Clow | |
---|---|---|---|
Milestone: | To Be Determined | Component: | algorithm |
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/algorithm/string.hpp> int main() { }
A snippet of compile errors:
1>boost_1_62_0\boost\algorithm\string\detail\case_conv.hpp(33): error C2143: syntax error: missing ',' before '<'
1>boost_1_62_0\boost\algorithm\string\detail\case_conv.hpp(49): note: see reference to class template instantiation 'boost::algorithm::detail::to_lowerF<CharT>' being compiled
1>boost_1_62_0\boost\algorithm\string\detail\case_conv.hpp(53): error C2143: syntax error: missing ',' before '<'
1>boost_1_62_0\boost\algorithm\string\detail\case_conv.hpp(69): note: see reference to class template instantiation boost::algorithm::detail::to_upperF<CharT>' being compiled
Presumably this is because std::binary_function and std::unary_function are removed from C++17.
Change History (3)
comment:1 by , 6 years ago
comment:2 by , 5 years ago
I think this never got merged, I still got an error with Boost 1.64.0, it doesn't compile on VS2017.
I believe that this is fixed now in develop; I'll wait for the tests to cycle, then merge to master.