Remove uses of BOOST_NO_CXX11_ALLOCATOR

This commit is contained in:
Peter Dimov
2024-09-25 03:13:22 +03:00
parent 0aa32dc692
commit dccecc2500
9 changed files with 5 additions and 134 deletions
-11
View File
@@ -15,8 +15,6 @@
#include <boost/config.hpp>
#include <cstddef>
#if !defined( BOOST_NO_CXX11_ALLOCATOR )
template< class T > class cxx11_allocator
{
public:
@@ -230,12 +228,3 @@ int main()
return boost::report_errors();
}
#else // !defined( BOOST_NO_CXX11_ALLOCATOR )
int main()
{
return 0;
}
#endif
@@ -5,10 +5,9 @@ Copyright 2012-2015 Glen Joseph Fernandes
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_ALLOCATOR)
#include <boost/core/lightweight_test.hpp>
#include <boost/smart_ptr/make_shared.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/config.hpp>
struct allow { };
@@ -155,9 +154,3 @@ int main()
}
return boost::report_errors();
}
#else
int main()
{
return 0;
}
#endif
+1 -12
View File
@@ -8,14 +8,12 @@
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/core/lightweight_test.hpp>
#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/core/lightweight_test.hpp>
#include <cstddef>
#if !defined( BOOST_NO_CXX11_ALLOCATOR )
template< class T > class cxx11_allocator
{
public:
@@ -229,12 +227,3 @@ int main()
return boost::report_errors();
}
#else // !defined( BOOST_NO_CXX11_ALLOCATOR )
int main()
{
return 0;
}
#endif
+1 -12
View File
@@ -11,13 +11,11 @@
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/core/lightweight_test.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/core/lightweight_test.hpp>
#include <memory>
#include <cstddef>
#if !defined( BOOST_NO_CXX11_ALLOCATOR )
template< class T > class cxx11_allocator
{
public:
@@ -105,12 +103,3 @@ int main()
return boost::report_errors();
}
#else // !defined( BOOST_NO_CXX11_ALLOCATOR )
int main()
{
return 0;
}
#endif
+1 -8
View File
@@ -5,10 +5,9 @@ Copyright 2017 Glen Joseph Fernandes
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/core/lightweight_test.hpp>
#include <boost/make_shared.hpp>
#include <boost/core/lightweight_test.hpp>
#if !defined(BOOST_NO_CXX11_ALLOCATOR)
struct counters {
unsigned allocate;
unsigned construct;
@@ -120,9 +119,3 @@ int main()
}
return boost::report_errors();
}
#else
int main()
{
return 0;
}
#endif