Modify

Opened 7 years ago

Closed 7 years ago

#4388 closed Patches (fixed)

apply failure : map_keys, map_values to array

Reported by: Akira Takahashi <faithandbrave@…> Owned by: Neil Groves
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 (2)

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

Download all attachments as: .zip

Change History (3)

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

Attachment: map.patch added

value_type to range_value patch

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

Attachment: map_to_array_test.cpp added

test code

comment:1 Changed 7 years ago by Neil Groves

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Neil Groves.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.