forked from boostorg/container
Ticket #7123: Forward declaration for scoped allocator customization traits.
[SVN r79463]
This commit is contained in:
@@ -8,20 +8,15 @@
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
#include <boost/container/detail/config_begin.hpp>
|
||||
#include <boost/container/scoped_allocator.hpp>
|
||||
#include <boost/container/scoped_allocator_fwd.hpp>
|
||||
#include <cstddef>
|
||||
#include <boost/static_assert.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
#include <boost/container/detail/function_detector.hpp>
|
||||
#include <boost/container/detail/mpl.hpp>
|
||||
#include <boost/move/move.hpp>
|
||||
#include <boost/type_traits/integral_constant.hpp>
|
||||
#include <memory>
|
||||
#include <boost/container/vector.hpp>
|
||||
#include <boost/container/detail/pair.hpp>
|
||||
|
||||
using namespace boost::container;
|
||||
|
||||
|
||||
template<class T, unsigned int Id, bool Propagate = false>
|
||||
class test_allocator
|
||||
{
|
||||
@@ -242,6 +237,12 @@ struct constructible_with_allocator_suffix
|
||||
} //namespace boost {
|
||||
|
||||
|
||||
#include <boost/container/scoped_allocator.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
#include <boost/static_assert.hpp>
|
||||
#include <boost/container/vector.hpp>
|
||||
#include <boost/container/detail/pair.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
typedef test_allocator<tagged_integer<0>, 0> OuterAlloc;
|
||||
|
||||
Reference in New Issue
Block a user