Modify

Ticket #4388 (closed Patches: fixed)

Opened 7 years ago

Last modified 7 years ago

apply failure : map_keys, map_values to array

Reported by: Akira Takahashi <faithandbrave@…> Owned by: neilgroves
Milestone: Boost 1.44.0 Component: range
Version: Boost 1.43.0 Severity: Problem
Keywords: Cc:

Description

map_keys and map_values can apply vector<pair<T, U> >. But on pair<T, U>'s array can't apply.

This problem is map_keys and map_values requires value_type. Solution is Map::value_type to range_value<Map>::type.

Attachments

map.patch (1.2 KB) - added by Akira Takahashi <faithandbrave@…> 7 years ago.
value_type to range_value patch
map_to_array_test.cpp (889 bytes) - added by Akira Takahashi <faithandbrave@…> 7 years ago.
test code

Change History

Changed 7 years ago by Akira Takahashi <faithandbrave@…>

value_type to range_value patch

Changed 7 years ago by Akira Takahashi <faithandbrave@…>

test code

comment:1 Changed 7 years ago by neilgroves

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

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
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.