Opened 5 years ago
#13306 new Bugs
Bimap uses std::unary_function/std::binary_function which are removed in c++17
Reported by: | Owned by: | Matias Capeletto | |
---|---|---|---|
Milestone: | To Be Determined | Component: | bimap |
Version: | Boost 1.65.0 | Severity: | Problem |
Keywords: | c++17, visual studio 2017 | Cc: |
Description
Some code, which uses boost::bimap does not compile on Windows 10 with Visual Studio 2017 Professional using the compiler flag /std:c++latest (which enables the C++17 standard).
This is due to std::unary_function (and similar templates) being removed in C++17.
A number of structures in the underlying code of boost::bimap (e.g. bimaps::container_adaptor::detail::comparison_adaptor, bimaps::relation::support::data_extractor_implementation) derive from std::unary_function or std::binary_function.
Note:
See TracTickets
for help on using tickets.