PR libstdc++/84769 qualify call to std::get<0>
authorJonathan Wakely <jwakely@redhat.com>
Thu, 3 May 2018 18:58:04 +0000 (19:58 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 3 May 2018 18:58:04 +0000 (19:58 +0100)
PR libstdc++/84769
* include/std/variant (visit): Qualify std::get call.

From-SVN: r259902

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

index c2a224da55bbd375e8d498107a37cf21c6fef552..823d284d1d4462163d63b98efcf04bb21d27088b 100644 (file)
@@ -1,5 +1,8 @@
 2018-05-03  Jonathan Wakely  <jwakely@redhat.com>
 
+       PR libstdc++/84769
+       * include/std/variant (visit): Qualify std::get call.
+
        PR libstdc++/85632 use uintmax_t for arithmetic
        * src/filesystem/ops.cc (experimental::filesystem::space): Perform
        arithmetic in result type.
index f64c037a51406b050d2c339e7bc94399d64f9a8d..40b3b5669389dad6827256b9a9b8f62bef1ed82c 100644 (file)
@@ -1389,7 +1389,7 @@ namespace __variant
 
       using _Result_type =
        decltype(std::forward<_Visitor>(__visitor)(
-           get<0>(std::forward<_Variants>(__variants))...));
+           std::get<0>(std::forward<_Variants>(__variants))...));
 
       constexpr auto& __vtable = __detail::__variant::__gen_vtable<
        _Result_type, _Visitor&&, _Variants&&...>::_S_vtable;