diff options
| -rw-r--r-- | libs/kstd/kstd/ring_buffer.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/kstd/kstd/ring_buffer.hpp b/libs/kstd/kstd/ring_buffer.hpp index 591ff445..10ee334d 100644 --- a/libs/kstd/kstd/ring_buffer.hpp +++ b/libs/kstd/kstd/ring_buffer.hpp @@ -523,7 +523,7 @@ namespace kstd //! @return @p true iff. the buffer had space for the value, @p false otherwise. template<typename PushedType> requires(std::same_as<ValueType, std::remove_cvref_t<PushedType>>) - constexpr auto try_push_back(PushedType && value) -> bool + [[nodiscard]] constexpr auto try_push_back(PushedType && value) -> bool { if (m_size >= capacity()) { |
