Skip to content

Commit cff2ae6

Browse files
committed
Add missing [[nodiscard]]
1 parent 72f333e commit cff2ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/msgpack23/msgpack23.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ namespace msgpack23 {
462462
}
463463

464464
template<FormatConstants FC, typename T, typename U>
465-
bool read_conditional(U &out) {
465+
[[nodiscard]] bool read_conditional(U &out) {
466466
if (check_constant(FC)) {
467467
increment();
468468
out = static_cast<U>(read_integral<T>());

0 commit comments

Comments
 (0)