Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$ prog.cc: In lambda function:
prog.cc:11:159: warning: the compiler can assume that the address of 'referencia' will never be NULL [-Waddress]
std::find_if(std::begin(datos), std::end(datos), [](S &referencia) { static_assert(std::is_reference_v<decltype(referencia)>, "Ojo!"); return &referencia == nullptr; });
~~~~~~~~~~~~^~~~~~~~~~
prog.cc:11:162: warning: nonnull argument 'referencia' compared to NULL [-Wnonnull-compare]
std::find_if(std::begin(datos), std::end(datos), [](S &referencia) { static_assert(std::is_reference_v<decltype(referencia)>, "Ojo!"); return &referencia == nullptr; });
^~~~~~~
Exit Code:
0