[PATCH] Qualify another call in <variant>

Jonathan Wakely jwakely@redhat.com
Tue May 29 17:21:00 GMT 2018


	* include/std/variant (__erased_dtor): Qualify call to __get.

Tested powerpc64le-linux, committed to trunk. Backports to follow.

-------------- next part --------------
commit a79e92a05636a5fee047fb6dfa8c839ab93ee35f
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue May 29 18:04:57 2018 +0100

    Qualify another call in <variant>
    
            * include/std/variant (__erased_dtor): Qualify call to __get.

diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant
index c0212404bb2..63eafdd58e5 100644
--- a/libstdc++-v3/include/std/variant
+++ b/libstdc++-v3/include/std/variant
@@ -249,7 +249,7 @@ namespace __variant
   template<typename _Variant, size_t _Np>
     void
     __erased_dtor(_Variant&& __v)
-    { std::_Destroy(std::__addressof(__get<_Np>(__v))); }
+    { std::_Destroy(std::__addressof(__variant::__get<_Np>(__v))); }
 
   template<typename _Lhs, typename _Rhs>
     void


More information about the Libstdc++ mailing list