diff --git a/test/msgpack_cpp11.cpp b/test/msgpack_cpp11.cpp index 2a856cb8b..6b04e5a1a 100644 --- a/test/msgpack_cpp11.cpp +++ b/test/msgpack_cpp11.cpp @@ -252,6 +252,9 @@ struct equal_to : std::equal_to { template struct set_allocator : std::allocator { using std::allocator::allocator; + + template + struct rebind { using other = set_allocator; }; }; // C++ named requirement Allocator implies that the first template type @@ -262,6 +265,9 @@ struct set_allocator : std::allocator { template struct map_allocator_impl : std::allocator { using std::allocator::allocator; + + template + struct rebind { using other = map_allocator_impl; }; }; template @@ -270,6 +276,9 @@ using map_allocator = map_allocator_impl>; template struct allocator : std::allocator { using std::allocator::allocator; + + template + struct rebind { using other = allocator; }; }; } // namespace test