Index: test/std/containers/stack_allocator.h =================================================================== --- test/std/containers/stack_allocator.h +++ test/std/containers/stack_allocator.h @@ -13,6 +13,18 @@ #include #include +#ifdef TEST_STACK_ALLOCATOR_WORKAROUND + +#include + +template +using stack_allocator = std::allocator; + +// This is a temporary workaround for library implementations +// that can't tolerate the nonconformant stack_allocator below. + +#else // TEST_STACK_ALLOCATOR_WORKAROUND + template class stack_allocator { @@ -63,4 +75,6 @@ void swap(stack_allocator& x, stack_allocator& y) {} +#endif // TEST_STACK_ALLOCATOR_WORKAROUND + #endif // STACK_ALLOCATOR_H