Opened 15 years ago

Closed 14 years ago

#1555 closed Bugs (wontfix)

When BOOST_HASH_NO_EXTENSIONS is defined hash doesn't support boost::system::error_code

Reported by: Daniel James Owned by: Daniel James
Milestone: Boost 1.37.0 Component: hash
Version: Boost 1.34.1 Severity: Problem
Keywords: Cc:

Description

std::hash supports std::error_code so boost::hash should support boost::system::error_code. Boost.System defined 'hash_value' so when BOOST_HASH_NO_EXTENSIONS is not defined it does, but when BOOST_HASH_NO_EXTENSIONS is defined an explicit specialization is needed. Documentation should be added as well.

I'd actually prefer not to do this as it would mean either declaring boost::system::error_code myself or adding a dependency on Boost.System. Neither of which is desirable.

The other solution would be to remove support for the BOOST_HASH_NO_EXTENSIONS macro. Or to just note the problem.

Change History (3)

comment:1 by Daniel James, 15 years ago

Status: newassigned

comment:2 by Daniel James, 14 years ago

Milestone: Boost 1.36.0Boost 1.37.0

comment:3 by Daniel James, 14 years ago

Resolution: wontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.