Ticket #6806 (closed Feature Requests: fixed)

Opened 5 years ago

Last modified 5 years ago

Support std::array

Reported by: Olaf van der Spek <olafvdspek@…> Owned by: danieljames
Milestone: Boost 1.50.0 Component: hash
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:


boost::hash_value appears to lack support for std::array. Could you add it?

Isn't it possible to support all containers in a generic way?


Change History

comment:1 Changed 5 years ago by danieljames

(In [78144]) Hash: Support std::array and std::tuple. Refs #6806.

comment:2 Changed 5 years ago by danieljames

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from To Be Determined to Boost 1.50.0

Merged to release in [78319]

comment:3 Changed 5 years ago by gast128@…

Does this also work for Boost.Array and Boost.Tuple?

comment:4 Changed 5 years ago by danieljames

No, they need to implement hash_value themselves. I think Boost.Array has, but Boost.Tuple hasn't.

comment:5 Changed 5 years ago by gast128@…

Yes Boost.Array has, i just checked.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

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

Note: See TracTickets for help on using tickets.