Opened 8 months ago

#13306 new Bugs

Bimap uses std::unary_function/std::binary_function which are removed in c++17

Reported by: Andy Vincent <andrew.vincent@…> Owned by: Matias Capeletto
Milestone: To Be Determined Component: bimap
Version: Boost 1.65.0 Severity: Problem
Keywords: c++17, visual studio 2017 Cc:


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.

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Matias Capeletto.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.