diff options
Diffstat (limited to 'libstdc++-v3/include/experimental/any')
-rw-r--r-- | libstdc++-v3/include/experimental/any | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/experimental/any b/libstdc++-v3/include/experimental/any index f8cd4a7..ed7a115 100644 --- a/libstdc++-v3/include/experimental/any +++ b/libstdc++-v3/include/experimental/any @@ -266,7 +266,7 @@ inline namespace fundamentals_v1 // observers /// Reports whether there is a contained object or not. - bool empty() const noexcept { return _M_manager == nullptr; } + _GLIBCXX_NODISCARD bool empty() const noexcept { return _M_manager == nullptr; } #if __cpp_rtti /// The @c typeid of the contained object, or @c typeid(void) if empty. |