Clang diagnoses insert inconsistent noexcept-specifier on the friend
declaration of __get. Add .
PR libstdc++/90397
* include/std/variant (variant): Add noexcept to friend declaration.
From-SVN: r271083
2019-05-10 Jonathan Wakely <jwakely@redhat.com>
+ PR libstdc++/90397
+ * include/std/variant (variant): Add noexcept to friend declaration.
+
Backport from mainline
2019-04-26 Jonathan Wakely <jwakely@redhat.com>
#endif
template<size_t _Np, typename _Vp>
- friend constexpr decltype(auto) __detail::__variant::__get(_Vp&& __v);
+ friend constexpr decltype(auto)
+ __detail::__variant::__get(_Vp&& __v) noexcept;
template<typename _Vp>
friend void* __detail::__variant::__get_storage(_Vp&& __v);