From d3da3ed0706f106f1a6e5e2d837843ac9c1d144d Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 23 May 2020 18:45:20 +0300 Subject: [PATCH] Added a workaround for removed nested typedefs in std::allocator. --- test/allocator_utilities_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/allocator_utilities_test.cpp b/test/allocator_utilities_test.cpp index def9b4b..781d60b 100644 --- a/test/allocator_utilities_test.cpp +++ b/test/allocator_utilities_test.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -27,14 +28,14 @@ int main() // Check allocate works okay { - char_allocator::pointer p = a2.allocate(10); + boost::allocator_pointer::type p = a2.allocate(10); BOOST_TEST(!!p); a2.deallocate(p, 10); } // Try using the standalone construct/destroy { - int_allocator::pointer p2 = a3.allocate(1); + boost::allocator_pointer::type p2 = a3.allocate(1); boost::detail::allocator::construct(p2, 25); BOOST_TEST(*p2 == 25); boost::detail::allocator::destroy(p2);