mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Fix bug in has_construct
by using std::declval
This commit is contained in:
@ -1145,7 +1145,7 @@ namespace boost {
|
|||||||
template <typename T, typename ValueType, typename... Args>
|
template <typename T, typename ValueType, typename... Args>
|
||||||
BOOST_UNORDERED_HAS_FUNCTION(construct, U,
|
BOOST_UNORDERED_HAS_FUNCTION(construct, U,
|
||||||
(boost::unordered::detail::make<ValueType*>(),
|
(boost::unordered::detail::make<ValueType*>(),
|
||||||
boost::unordered::detail::make<Args const>()...),
|
std::declval<Args>()...),
|
||||||
2);
|
2);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user