:
[[maybe_unused]] void f([[maybe_unused]] bool thing1,
[[maybe_unused]] bool thing2) {
[[maybe_unused]] bool b = thing1 && thing2;
assert(b);
}
Implementations are encouraged not to warn that
b is unused,
whether or not
NDEBUG is defined
. —
end example