mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
rewritten to appease VS2017 and older
This commit is contained in:
@ -61,9 +61,7 @@ struct takes_arg_as_const_reference0:std::false_type{};
|
||||
template<typename F,typename Arg>
|
||||
struct takes_arg_as_const_reference0<
|
||||
F,Arg,
|
||||
boost::void_t<
|
||||
decltype(check_function_1st_arg<const Arg&>(std::declval<F>()))
|
||||
>
|
||||
decltype(check_function_1st_arg<const Arg&>(std::declval<F>()))
|
||||
>:std::true_type{};
|
||||
|
||||
template<typename F,typename Arg>
|
||||
@ -83,13 +81,13 @@ template<
|
||||
typename RawF=
|
||||
typename std::remove_cv<typename std::remove_reference<F>::type>::type
|
||||
>
|
||||
using check_operator_call_takes_arg_as_reference=
|
||||
decltype(check_memfun_1st_arg<Arg&,R,RawF>(&RawF::operator()));
|
||||
decltype(check_memfun_1st_arg<Arg&,R,RawF>(&RawF::operator()))
|
||||
check_operator_call_takes_arg_as_reference();
|
||||
|
||||
template<typename F,typename Arg>
|
||||
struct takes_arg_as_const_reference<
|
||||
F,Arg,
|
||||
boost::void_t<check_operator_call_takes_arg_as_reference<F,Arg>>
|
||||
decltype(check_operator_call_takes_arg_as_reference<F,Arg>())
|
||||
>:std::false_type{};
|
||||
|
||||
} /* namespace foa */
|
||||
|
Reference in New Issue
Block a user