forked from boostorg/unordered
Update extract()
SFINAE to be friendly to msvc-14.0
msvc-14.0 seems to require the parameter pack be explicitly mentioned though no other compilers seem to have this issue
This commit is contained in:
@ -2878,11 +2878,13 @@ namespace boost {
|
|||||||
return no_key();
|
return no_key();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <template <class...> class Tuple, typename T, typename T2,
|
template <template <typename...> class Tuple, typename T, typename T2,
|
||||||
|
typename... Args>
|
||||||
|
static auto extract(
|
||||||
|
std::piecewise_construct_t, Tuple<T, Args...> const& k, T2 const&) ->
|
||||||
typename std::enable_if<
|
typename std::enable_if<
|
||||||
!std::is_same<T, boost::tuples::null_type>::value, int>::type = 0>
|
!std::is_same<T, boost::tuples::null_type>::value,
|
||||||
static typename is_key<key_type, T>::type extract(
|
typename is_key<key_type, T>::type>::type
|
||||||
std::piecewise_construct_t, Tuple<T> const& k, T2 const&)
|
|
||||||
{
|
{
|
||||||
using std::get;
|
using std::get;
|
||||||
return typename is_key<key_type, T>::type(get<0>(k));
|
return typename is_key<key_type, T>::type(get<0>(k));
|
||||||
|
Reference in New Issue
Block a user