mirror of
https://github.com/boostorg/optional.git
synced 2025-07-25 18:17:16 +02:00
small sfinae fix for in_place constructors
This commit is contained in:
@ -727,7 +727,9 @@ class optional_base : public optional_tag
|
|||||||
template <typename U>
|
template <typename U>
|
||||||
struct is_optional_related
|
struct is_optional_related
|
||||||
: boost::conditional< boost::is_base_of<optional_detail::optional_tag, BOOST_DEDUCED_TYPENAME boost::decay<U>::type>::value
|
: boost::conditional< boost::is_base_of<optional_detail::optional_tag, BOOST_DEDUCED_TYPENAME boost::decay<U>::type>::value
|
||||||
|| boost::is_same<BOOST_DEDUCED_TYPENAME boost::decay<U>::type, none_t>::value,
|
|| boost::is_same<BOOST_DEDUCED_TYPENAME boost::decay<U>::type, none_t>::value
|
||||||
|
|| boost::is_same<BOOST_DEDUCED_TYPENAME boost::decay<U>::type, in_place_init_t>::value
|
||||||
|
|| boost::is_same<BOOST_DEDUCED_TYPENAME boost::decay<U>::type, in_place_init_if_t>::value,
|
||||||
boost::true_type, boost::false_type>::type
|
boost::true_type, boost::false_type>::type
|
||||||
{};
|
{};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user