Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$
prog.cc: In function 'int main()':
prog.cc:13:45: warning: ignoring return value of 'constexpr auto NoDiscard<F>::operator()(T&& ...) [with T = {int}; F = main()::<lambda(int)>]', declared with attribute nodiscard [-Wunused-result]
int main() {NoDiscard([](int i) {return i;})(0);}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
prog.cc:8:35: note: declared here
[[nodiscard]] constexpr auto operator()(T&&... t) {
^~~~~~~~
Exit Code:
0