diff --git a/libstdc++-v3/include/ext/extptr_allocator.h b/libstdc++-v3/include/ext/extptr_allocator.h index 7d8aaac7cee..78ee1fa039f 100644 --- a/libstdc++-v3/include/ext/extptr_allocator.h +++ b/libstdc++-v3/include/ext/extptr_allocator.h @@ -162,6 +162,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION std::allocator<_Tp> _M_real_alloc; }; +#if ! _GLIBCXX_INLINE_VERSION // _ExtPtr_allocator specialization. template<> class _ExtPtr_allocator @@ -183,6 +184,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION private: std::allocator _M_real_alloc; }; +#endif template inline void