aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++/new
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/libsupc++/new')
-rw-r--r--libstdc++-v3/libsupc++/new4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/libsupc++/new b/libstdc++-v3/libsupc++/new
index 795b33c4e6a..0e408b1019c 100644
--- a/libstdc++-v3/libsupc++/new
+++ b/libstdc++-v3/libsupc++/new
@@ -176,7 +176,7 @@ inline void operator delete[](void*, void*) _GLIBCXX_USE_NOEXCEPT { }
//@}
} // extern "C++"
-#if __cplusplus > 201402L
+#if __cplusplus >= 201703L
#if __GNUC__ >= 7
# define _GLIBCXX_HAVE_BUILTIN_LAUNDER 1
#elif defined __has_builtin
@@ -192,7 +192,7 @@ namespace std
#define __cpp_lib_launder 201606
/// Pointer optimization barrier [ptr.launder]
template<typename _Tp>
- constexpr _Tp*
+ [[nodiscard]] constexpr _Tp*
launder(_Tp* __p) noexcept
{ return __builtin_launder(__p); }