From b406b574a5aef3bccd26f1fdd9914c189f7366d2 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Tue, 6 Feb 2018 19:41:13 -0500 Subject: [PATCH] For MSVC2017 use detector_t, instead of make_void. (Not using boost::void_t to workaround a VC12 defect) --- include/boost/type_traits/detail/detector.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/type_traits/detail/detector.hpp b/include/boost/type_traits/detail/detector.hpp index 12e6fd7..007a4dc 100644 --- a/include/boost/type_traits/detail/detector.hpp +++ b/include/boost/type_traits/detail/detector.hpp @@ -16,6 +16,9 @@ or copy at http://www.boost.org/LICENSE_1_0.txt) namespace boost { namespace detail { +template +using detector_t = typename boost::make_void::type; + template class, class...> struct detector { using value_t = boost::false_type; @@ -23,8 +26,7 @@ struct detector { }; template class Op, class... Args> -struct detector >::type, Op, - Args...> { +struct detector >, Op, Args...> { using value_t = boost::true_type; using type = Op; };