Re: [[nodiscard]] operator new
От: reversecode google
Дата: 24.05.20 11:38
Оценка:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0600r1.pdf

So, [nodiscard]] should not signal bad code if this
a) can be useful not to use the return value
b) is common not to use the return value
c) doesn’t hurt and probably no state change was meant that doesn’t happen

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.