Qualify calls to __never_valueless in <variant>
authorJonathan Wakely <jwakely@redhat.com>
Thu, 20 Jun 2019 14:17:51 +0000 (15:17 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 20 Jun 2019 14:17:51 +0000 (15:17 +0100)
* include/std/variant (_Variant_storage, _Extra_visit_slot_needed):
Qualify calls to __never_valueless.

From-SVN: r272508

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/variant

index db90efad5bf83ec2553fe1e557aab68d08431472..d5e4c85b072dea6aedc6a5d99d384a126a29d7ce 100644 (file)
@@ -1,5 +1,8 @@
 2019-06-20  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/std/variant (_Variant_storage, _Extra_visit_slot_needed):
+       Qualify calls to __never_valueless.
+
        * doc/xml/manual/status_cxx2017.xml: Fix outdated reference to
        C++17 working draft.
 
index c86b0c8ccf31669347e82ee6263f7cbcbe7bbb77..d93ea86ea2960d6383f6ac615d5b4022a576271c 100644 (file)
@@ -422,7 +422,7 @@ namespace __variant
       constexpr bool
       _M_valid() const noexcept
       {
-       if constexpr (__never_valueless<_Types...>())
+       if constexpr (__variant::__never_valueless<_Types...>())
          return true;
        return this->_M_index != __index_type(variant_npos);
       }
@@ -456,7 +456,7 @@ namespace __variant
       constexpr bool
       _M_valid() const noexcept
       {
-       if constexpr (__never_valueless<_Types...>())
+       if constexpr (__variant::__never_valueless<_Types...>())
          return true;
        return this->_M_index != __index_type(variant_npos);
       }
@@ -799,7 +799,7 @@ namespace __variant
 
       template <typename... _Types>
        struct _Variant_never_valueless<variant<_Types...>>
-       : bool_constant<__never_valueless<_Types...>()> {};
+       : bool_constant<__variant::__never_valueless<_Types...>()> {};
 
       static constexpr bool value =
        (is_same_v<_Maybe_variant_cookie, __variant_cookie>