mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 06:24:26 +02:00
Sigh. Missed one file when updating Boost.Container to use new macro scheme
[SVN r81448]
This commit is contained in:
@@ -175,12 +175,12 @@ struct allocator_traits
|
|||||||
struct rebind_alloc : boost::intrusive::detail::type_rebinder<Alloc,T>::type
|
struct rebind_alloc : boost::intrusive::detail::type_rebinder<Alloc,T>::type
|
||||||
{
|
{
|
||||||
typedef typename boost::intrusive::detail::type_rebinder<Alloc,T>::type Base;
|
typedef typename boost::intrusive::detail::type_rebinder<Alloc,T>::type Base;
|
||||||
#if !defined(BOOST_NO_VARIADIC_TEMPLATES)
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
rebind_alloc(BOOST_FWD_REF(Args)... args)
|
rebind_alloc(BOOST_FWD_REF(Args)... args)
|
||||||
: Base(boost::forward<Args>(args)...)
|
: Base(boost::forward<Args>(args)...)
|
||||||
{}
|
{}
|
||||||
#else // #if !defined(BOOST_NO_VARIADIC_TEMPLATES)
|
#else // #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
#define BOOST_PP_LOCAL_MACRO(n) \
|
#define BOOST_PP_LOCAL_MACRO(n) \
|
||||||
BOOST_PP_EXPR_IF(n, template<) BOOST_PP_ENUM_PARAMS(n, class P) BOOST_PP_EXPR_IF(n, >) \
|
BOOST_PP_EXPR_IF(n, template<) BOOST_PP_ENUM_PARAMS(n, class P) BOOST_PP_EXPR_IF(n, >) \
|
||||||
rebind_alloc(BOOST_PP_ENUM(n, BOOST_CONTAINER_PP_PARAM_LIST, _)) \
|
rebind_alloc(BOOST_PP_ENUM(n, BOOST_CONTAINER_PP_PARAM_LIST, _)) \
|
||||||
@@ -189,7 +189,7 @@ struct allocator_traits
|
|||||||
//
|
//
|
||||||
#define BOOST_PP_LOCAL_LIMITS (0, BOOST_CONTAINER_MAX_CONSTRUCTOR_PARAMETERS)
|
#define BOOST_PP_LOCAL_LIMITS (0, BOOST_CONTAINER_MAX_CONSTRUCTOR_PARAMETERS)
|
||||||
#include BOOST_PP_LOCAL_ITERATE()
|
#include BOOST_PP_LOCAL_ITERATE()
|
||||||
#endif // #if !defined(BOOST_NO_VARIADIC_TEMPLATES)
|
#endif // #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
@@ -259,7 +259,7 @@ struct allocator_traits
|
|||||||
return allocator_traits::priv_select_on_container_copy_construction(flag, a);
|
return allocator_traits::priv_select_on_container_copy_construction(flag, a);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOST_NO_VARIADIC_TEMPLATES) || defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
|
||||||
//! <b>Effects</b>: calls `a.construct(p, std::forward<Args>(args)...)` if that call is well-formed;
|
//! <b>Effects</b>: calls `a.construct(p, std::forward<Args>(args)...)` if that call is well-formed;
|
||||||
//! otherwise, invokes `::new (static_cast<void*>(p)) T(std::forward<Args>(args)...)`
|
//! otherwise, invokes `::new (static_cast<void*>(p)) T(std::forward<Args>(args)...)`
|
||||||
template <class T, class ...Args>
|
template <class T, class ...Args>
|
||||||
@@ -298,7 +298,7 @@ struct allocator_traits
|
|||||||
static Alloc priv_select_on_container_copy_construction(boost::false_type, const Alloc &a)
|
static Alloc priv_select_on_container_copy_construction(boost::false_type, const Alloc &a)
|
||||||
{ return a; }
|
{ return a; }
|
||||||
|
|
||||||
#if !defined(BOOST_NO_VARIADIC_TEMPLATES)
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
template<class T, class ...Args>
|
template<class T, class ...Args>
|
||||||
static void priv_construct(boost::false_type, Alloc &a, T *p, BOOST_FWD_REF(Args) ...args)
|
static void priv_construct(boost::false_type, Alloc &a, T *p, BOOST_FWD_REF(Args) ...args)
|
||||||
{
|
{
|
||||||
@@ -322,7 +322,7 @@ struct allocator_traits
|
|||||||
template<class T, class ...Args>
|
template<class T, class ...Args>
|
||||||
static void priv_construct_dispatch2(boost::false_type, Alloc &, T *p, BOOST_FWD_REF(Args) ...args)
|
static void priv_construct_dispatch2(boost::false_type, Alloc &, T *p, BOOST_FWD_REF(Args) ...args)
|
||||||
{ ::new((void*)p) T(::boost::forward<Args>(args)...); }
|
{ ::new((void*)p) T(::boost::forward<Args>(args)...); }
|
||||||
#else // #if !defined(BOOST_NO_VARIADIC_TEMPLATES)
|
#else // #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
public:
|
public:
|
||||||
#define BOOST_PP_LOCAL_MACRO(n) \
|
#define BOOST_PP_LOCAL_MACRO(n) \
|
||||||
template<class T BOOST_PP_ENUM_TRAILING_PARAMS(n, class P) > \
|
template<class T BOOST_PP_ENUM_TRAILING_PARAMS(n, class P) > \
|
||||||
@@ -371,7 +371,7 @@ struct allocator_traits
|
|||||||
//
|
//
|
||||||
#define BOOST_PP_LOCAL_LIMITS (0, BOOST_CONTAINER_MAX_CONSTRUCTOR_PARAMETERS)
|
#define BOOST_PP_LOCAL_LIMITS (0, BOOST_CONTAINER_MAX_CONSTRUCTOR_PARAMETERS)
|
||||||
#include BOOST_PP_LOCAL_ITERATE()
|
#include BOOST_PP_LOCAL_ITERATE()
|
||||||
#endif // #if !defined(BOOST_NO_VARIADIC_TEMPLATES)
|
#endif // #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
#endif //#if defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
|
#endif //#if defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
|
||||||
|
|
||||||
///@endcond
|
///@endcond
|
||||||
|
Reference in New Issue
Block a user