You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
isn't clear enough why the warning is not encouraged. In fact, it's because the nodiscard attribute is on the class type referred to, not the function foo(), and the return type is not (cannot be) declared nodiscard. I'd suggest, if you agree, an editorial change to something like
void f() { foo(); } // warning not encouraged: not a nodiscard call, because
// neither the (reference) return type nor the function is
// declared nodiscard
would clarify the intent.
This seems like an improvement to me.
The text was updated successfully, but these errors were encountered:
Reported by Mike:
This seems like an improvement to me.
The text was updated successfully, but these errors were encountered: