Modify

Opened 12 months ago

Closed 6 months ago

Last modified 4 months ago

#12353 closed Bugs (fixed)

std::unary_function is removed in c++17, but still used in hash lib

Reported by: neveralso@… Owned by: Daniel James
Milestone: To Be Determined Component: hash
Version: Boost 1.61.0 Severity: Problem
Keywords: c++17 unary_function Cc:

Description

In file boost/functional/hash/hash.hpp line 438

I compiled in Visual Studio 2015 with /std:c++latest option. Compiler reports that the unary_function is not a member of "std".

Here is the cpp doc about std::unary_function, std::unary_function is deprecated in C++11 and removed in C++17

http://en.cppreference.com/w/cpp/utility/functional/unary_function

Attachments (0)

Change History (5)

comment:1 Changed 6 months ago by jeanga@…

This issue is still in Boost 1.63.0. Any ETA for a fix?

Thx! Jean

comment:2 Changed 6 months ago by Daniel James

Resolution: fixed
Status: newclosed

Sorry, I forgot to close this ticket. It's fixed in master, so it should be in Boost 1.64.0.

comment:3 Changed 4 months ago by anonymous

I am hitting this on 1.63.0 too. Even a unofficial patch to work around the problem would help a lot.

comment:3 Changed 4 months ago by anonymous

I am hitting this on 1.63.0 too. Even a unofficial patch to work around the problem would help a lot.

comment:4 Changed 4 months ago by anonymous

The appropriate commit is here:

https://github.com/boostorg/functional/commit/281e11b2923249869cce3131a415118bb9e2f1e1

But you could probably just delete all references to the problem classes. I think there's also a Visual Studio option you can use.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Daniel James.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.