From 9d96aea00ca304b1b2a0e581203fd94f85e84ff1 Mon Sep 17 00:00:00 2001 From: Barajeel <0xsilomir@gmail.com> Date: Tue, 1 Apr 2025 21:58:59 +0300 Subject: [PATCH] fix: incorrect placement of `[[noreturn]]` in `operator<<` --- include/msgpack/assert.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/msgpack/assert.hpp b/include/msgpack/assert.hpp index 6f8efe80..e19b5fb9 100644 --- a/include/msgpack/assert.hpp +++ b/include/msgpack/assert.hpp @@ -25,7 +25,7 @@ #ifdef NO_EXCEPTIONS struct AbortStream { - void operator<< [[noreturn]] (const auto& error) { + [[noreturn]] void operator<< (const auto& error) { info(error.what()); std::abort(); }