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:


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.


map.patch Download (1.2 KB) - added by Akira Takahashi <faithandbrave@…> 7 years ago.
value_type to range_value patch
map_to_array_test.cpp Download (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

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.