Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.cc:6:18: warning: address of function 'foo' will always evaluate to 'true' [-Wpointer-bool-conversion]
    std::cout << foo << std::endl;
              ~~ ^~~
prog.cc:6:18: note: prefix with the address-of operator to silence this warning
    std::cout << foo << std::endl;
                 ^
                 &
1 warning generated.
1
Exit Code:
0