From 88c9a78261fe1d54e297c7ac8bd4c052c19985fc Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 2 Oct 2026 14:35:22 +0200 Subject: kstd: ring_buffer: add missing nodiscard --- libs/kstd/kstd/ring_buffer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 requires(std::same_as>) - constexpr auto try_push_back(PushedType && value) -> bool + [[nodiscard]] constexpr auto try_push_back(PushedType && value) -> bool { if (m_size >= capacity()) { -- cgit v1.2.3