From 1ee021f2f3cb17f7e01cc8fde371b8e9d5dcd388 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 3 May 2018 19:58:04 +0100 Subject: [PATCH] PR libstdc++/84769 qualify call to std::get<0> PR libstdc++/84769 * include/std/variant (visit): Qualify std::get call. From-SVN: r259902 --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/include/std/variant | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c2a224da55b..823d284d1d4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2018-05-03 Jonathan Wakely + 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. diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant index f64c037a514..40b3b566938 100644 --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -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; -- 2.30.2