Modify

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#6031 closed Bugs (fixed)

bimap views don't contain "key_type" and "mapped_type" typedefs.

Reported by: Aaron Barany <akb825@…> Owned by: matias
Milestone: To Be Determined Component: bimap
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

The bimap views, such as "set_of" and "unordered_set_of" contain the "value_type" typedef for the pair type they store, but don't contain the "key_type" and "mapped_type" typedefs. These typedefs are present in all the standard mapping data structures such as std::map and boost::unordered_map. Any code that expects these typedefs to be present will work correctly when used with standard map types, but will fail when they are used with the left or right view of a bimap.

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by matias

  • Resolution set to fixed
  • Status changed from new to closed

(In [78583]) [bimap] Add key_type and mapped_type (leaving data_type for backward compatibility) typedefs to map views (Fix #6031)

comment:2 Changed 5 years ago by matias

(In [78743]) [bimap] Merge to release (fix #6031)

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain matias.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.