Opened 12 years ago

Closed 12 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@…> 12 years ago.
value_type to range_value patch
map_to_array_test.cpp (889 bytes ) - added by Akira Takahashi <faithandbrave@…> 12 years ago.
test code

Download all attachments as: .zip

Change History (3)

by Akira Takahashi <faithandbrave@…>, 12 years ago

Attachment: map.patch added

value_type to range_value patch

by Akira Takahashi <faithandbrave@…>, 12 years ago

Attachment: map_to_array_test.cpp added

test code

comment:1 by Neil Groves, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.