diff --git a/include/nonstd/expected.hpp b/include/nonstd/expected.hpp index a0385d0..aabe8cd 100644 --- a/include/nonstd/expected.hpp +++ b/include/nonstd/expected.hpp @@ -1824,10 +1824,10 @@ namespace expected_lite { #if nsel_P0323R <= 2 template< typename T, typename E = std::exception_ptr > -class expected +class [[nodiscard]] expected #else template< typename T, typename E > -class expected +class [[nodiscard]] expected #endif // nsel_P0323R { private: