forked from boostorg/unordered
Unordered: 'full construct' requires SFINAE expressions.
[SVN r78367]
This commit is contained in:
@ -205,13 +205,13 @@ namespace boost { namespace unordered { namespace detail {
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#if defined(BOOST_UNORDERED_VARIADIC_MOVE)
|
#if defined(BOOST_UNORDERED_VARIADIC_MOVE) && \
|
||||||
|
!defined(BOOST_NO_SFINAE_EXPR)
|
||||||
# define BOOST_UNORDERED_DETAIL_FULL_CONSTRUCT 1
|
# define BOOST_UNORDERED_DETAIL_FULL_CONSTRUCT 1
|
||||||
#else
|
#else
|
||||||
# define BOOST_UNORDERED_DETAIL_FULL_CONSTRUCT 0
|
# define BOOST_UNORDERED_DETAIL_FULL_CONSTRUCT 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// TODO: Does this match std::allocator_traits<Alloc>::rebind_alloc<T>?
|
// TODO: Does this match std::allocator_traits<Alloc>::rebind_alloc<T>?
|
||||||
template <typename Alloc, typename T>
|
template <typename Alloc, typename T>
|
||||||
struct rebind_wrap
|
struct rebind_wrap
|
||||||
@ -407,7 +407,7 @@ namespace boost { namespace unordered { namespace detail {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
#if defined(BOOST_UNORDERED_VARIADIC_MOVE)
|
#if BOOST_UNORDERED_DETAIL_FULL_CONSTRUCT
|
||||||
|
|
||||||
template <typename T, typename... Args>
|
template <typename T, typename... Args>
|
||||||
static typename boost::enable_if_c<
|
static typename boost::enable_if_c<
|
||||||
|
Reference in New Issue
Block a user