mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-05 23:44:39 +02:00
Remove usage of deprecated macros
[SVN r81494]
This commit is contained in:
@@ -149,7 +149,7 @@ BOOST_INTRUSIVE_INSTANTIATE_DEFAULT_TYPE_TMPLT(difference_type)
|
|||||||
template <typename T> struct first_param
|
template <typename T> struct first_param
|
||||||
{ typedef void type; };
|
{ typedef void type; };
|
||||||
|
|
||||||
#if !defined(BOOST_NO_VARIADIC_TEMPLATES)
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
|
||||||
template <template <typename, typename...> class TemplateClass, typename T, typename... Args>
|
template <template <typename, typename...> class TemplateClass, typename T, typename... Args>
|
||||||
struct first_param< TemplateClass<T, Args...> >
|
struct first_param< TemplateClass<T, Args...> >
|
||||||
@@ -173,7 +173,7 @@ template <typename T> struct first_param
|
|||||||
#define BOOST_PP_LOCAL_LIMITS (0, BOOST_INTRUSIVE_MAX_CONSTRUCTOR_PARAMETERS)
|
#define BOOST_PP_LOCAL_LIMITS (0, BOOST_INTRUSIVE_MAX_CONSTRUCTOR_PARAMETERS)
|
||||||
#include BOOST_PP_LOCAL_ITERATE()
|
#include BOOST_PP_LOCAL_ITERATE()
|
||||||
|
|
||||||
#endif //!defined(BOOST_NO_VARIADIC_TEMPLATES)
|
#endif //!defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
|
||||||
///////////////////////////
|
///////////////////////////
|
||||||
//struct type_rebind_mode
|
//struct type_rebind_mode
|
||||||
@@ -245,7 +245,7 @@ struct type_rebinder< Ptr, U, 1u >
|
|||||||
// OtherArgs>, where OtherArgs comprises zero or more type parameters.
|
// OtherArgs>, where OtherArgs comprises zero or more type parameters.
|
||||||
// Many pointers fit this form, hence many pointers will get a
|
// Many pointers fit this form, hence many pointers will get a
|
||||||
// reasonable default for rebind.
|
// reasonable default for rebind.
|
||||||
#if !defined(BOOST_NO_VARIADIC_TEMPLATES)
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
|
||||||
template <template <class, class...> class Ptr, typename T, class... Tn, class U>
|
template <template <class, class...> class Ptr, typename T, class... Tn, class U>
|
||||||
struct type_rebinder<Ptr<T, Tn...>, U, 0u >
|
struct type_rebinder<Ptr<T, Tn...>, U, 0u >
|
||||||
@@ -277,7 +277,7 @@ struct type_rebinder
|
|||||||
#define BOOST_PP_LOCAL_LIMITS (0, BOOST_INTRUSIVE_MAX_CONSTRUCTOR_PARAMETERS)
|
#define BOOST_PP_LOCAL_LIMITS (0, BOOST_INTRUSIVE_MAX_CONSTRUCTOR_PARAMETERS)
|
||||||
#include BOOST_PP_LOCAL_ITERATE()
|
#include BOOST_PP_LOCAL_ITERATE()
|
||||||
|
|
||||||
#endif //!defined(BOOST_NO_VARIADIC_TEMPLATES)
|
#endif //!defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
|
||||||
} //namespace detail {
|
} //namespace detail {
|
||||||
} //namespace intrusive {
|
} //namespace intrusive {
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <boost/intrusive/detail/config_begin.hpp>
|
#include <boost/intrusive/detail/config_begin.hpp>
|
||||||
|
|
||||||
#if !defined(BOOST_NO_RVALUE_REFERENCES) && !defined(BOOST_NO_VARIADIC_TEMPLATES)
|
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
#define BOOST_INTRUSIVE_PERFECT_FORWARDING
|
#define BOOST_INTRUSIVE_PERFECT_FORWARDING
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -81,10 +81,10 @@ struct pointer_traits
|
|||||||
typedef typename boost::intrusive::detail::type_rebinder<Ptr, U>::type type;
|
typedef typename boost::intrusive::detail::type_rebinder<Ptr, U>::type type;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !defined(BOOST_NO_TEMPLATE_ALIASES)
|
#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
|
||||||
template <class U> using rebind = typename boost::intrusive::detail::type_rebinder<Ptr, U>::type;
|
template <class U> using rebind = typename boost::intrusive::detail::type_rebinder<Ptr, U>::type;
|
||||||
#endif
|
#endif
|
||||||
#endif //#if !defined(BOOST_NO_TEMPLATE_ALIASES)
|
#endif //#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
|
||||||
|
|
||||||
//! <b>Remark</b>: If element_type is (possibly cv-qualified) void, r type is unspecified; otherwise,
|
//! <b>Remark</b>: If element_type is (possibly cv-qualified) void, r type is unspecified; otherwise,
|
||||||
//! it is element_type &.
|
//! it is element_type &.
|
||||||
@@ -225,7 +225,7 @@ struct pointer_traits<T*>
|
|||||||
template <class U> using rebind = U*;
|
template <class U> using rebind = U*;
|
||||||
#else
|
#else
|
||||||
typedef typename boost::intrusive::detail::unvoid<element_type>::type& reference;
|
typedef typename boost::intrusive::detail::unvoid<element_type>::type& reference;
|
||||||
#if !defined(BOOST_NO_TEMPLATE_ALIASES)
|
#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
|
||||||
template <class U> using rebind = U*;
|
template <class U> using rebind = U*;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user