@@ -294,7 +294,7 @@ struct tr1_hash : std::tr1::hash<Key> {
294294#include " msgpack/adaptor/tr1/unordered_map.hpp"
295295TEST (MSGPACK_TR1, simple_buffer_tr1_unordered_map)
296296{
297- typedef tr1::unordered_map<int , int , test::tr1_hash<int >, test::equal_to<int >, test::allocator<std::pair<int , int > > > type;
297+ typedef tr1::unordered_map<int , int , test::tr1_hash<int >, test::equal_to<int >, test::allocator<std::pair<const int , int > > > type;
298298 for (unsigned int k = 0 ; k < kLoop ; k++) {
299299 type val1;
300300 for (unsigned int i = 0 ; i < kElements ; i++)
@@ -413,7 +413,7 @@ struct hash : std::hash<Key> {
413413#include " msgpack/adaptor/tr1/unordered_map.hpp"
414414TEST (MSGPACK_TR1, simple_buffer_unordered_map)
415415{
416- typedef unordered_map<int , int , test::hash<int >, test::equal_to<int >, test::allocator<std::pair<int , int > > > type;
416+ typedef unordered_map<int , int , test::hash<int >, test::equal_to<int >, test::allocator<std::pair<const int , int > > > type;
417417 for (unsigned int k = 0 ; k < kLoop ; k++) {
418418 type val1;
419419 for (unsigned int i = 0 ; i < kElements ; i++)
@@ -434,7 +434,7 @@ TEST(MSGPACK_TR1, simple_buffer_unordered_map)
434434
435435TEST (MSGPACK_TR1, simple_buffer_unordered_multimap)
436436{
437- typedef unordered_multimap<int , int , test::hash<int >, test::equal_to<int >, test::allocator<std::pair<int , int > > > type;
437+ typedef unordered_multimap<int , int , test::hash<int >, test::equal_to<int >, test::allocator<std::pair<const int , int > > > type;
438438 for (unsigned int k = 0 ; k < kLoop ; k++) {
439439 type val1;
440440 for (unsigned int i = 0 ; i < kElements ; i++) {
0 commit comments