Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 4 years ago

Language

C++

Compiler

clang HEAD 13.0.0 (https://github.com/llvm/llvm-project.git c4ed142e695f14ba5675ec6d12226ee706329a0f)

Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic

Author

anonymous

almost 4 years ago

new.cpp

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=gnu++2b
prog.cc:8:11: warning: address of function 'getNumber' will always evaluate to 'true' [-Wpointer-bool-conversion]
    cout<<getNumber<<endl;
        ~~^~~~~~~~~
prog.cc:8:11: note: prefix with the address-of operator to silence this warning
    cout<<getNumber<<endl;
          ^
          &
1 warning generated.
1
Exit Code:
0