From ffb34fdcde1142b0600190510d39a06ad2bc367b Mon Sep 17 00:00:00 2001 From: joaquintides Date: Thu, 13 Jul 2023 09:52:59 +0200 Subject: [PATCH] rewritten to appease VS2017 and older --- .../detail/foa/takes_arg_as_const_reference.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/boost/unordered/detail/foa/takes_arg_as_const_reference.hpp b/include/boost/unordered/detail/foa/takes_arg_as_const_reference.hpp index 26cc7a57..a5174273 100644 --- a/include/boost/unordered/detail/foa/takes_arg_as_const_reference.hpp +++ b/include/boost/unordered/detail/foa/takes_arg_as_const_reference.hpp @@ -61,9 +61,7 @@ struct takes_arg_as_const_reference0:std::false_type{}; template struct takes_arg_as_const_reference0< F,Arg, - boost::void_t< - decltype(check_function_1st_arg(std::declval())) - > + decltype(check_function_1st_arg(std::declval())) >:std::true_type{}; template @@ -83,13 +81,13 @@ template< typename RawF= typename std::remove_cv::type>::type > -using check_operator_call_takes_arg_as_reference= - decltype(check_memfun_1st_arg(&RawF::operator())); +decltype(check_memfun_1st_arg(&RawF::operator())) +check_operator_call_takes_arg_as_reference(); template struct takes_arg_as_const_reference< F,Arg, - boost::void_t> + decltype(check_operator_call_takes_arg_as_reference()) >:std::false_type{}; } /* namespace foa */