From a97160cf579d00b129fac2f3dd33ed54ff0808af Mon Sep 17 00:00:00 2001 From: LeonineKing1199 Date: Sat, 28 Aug 2021 16:09:13 -0700 Subject: [PATCH] Fix bug in `has_construct` by using `std::declval` --- include/boost/unordered/detail/implementation.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index 9dffde15..5daf53ee 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -1145,7 +1145,7 @@ namespace boost { template BOOST_UNORDERED_HAS_FUNCTION(construct, U, (boost::unordered::detail::make(), - boost::unordered::detail::make()...), + std::declval()...), 2); #else