Index: test/support/test_allocator.h =================================================================== --- test/support/test_allocator.h +++ test/support/test_allocator.h @@ -334,6 +334,9 @@ { typedef limited_alloc_handle BuffT; std::shared_ptr handle_; + + template friend class limited_allocator; + public: typedef T value_type; typedef value_type* pointer;