Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.1 20190312 (experimental)

Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:16:42: error: no match for 'operator>' (operand types are 'mTypes' and 'uint64_t' {aka 'long unsigned int'})
   16 |     std::cout << "Hello: " << (mTypes::B > (uint64_t) 1 ) << std::endl;
      |                                ~~~~~~~~~ ^ ~~~~~~~~~~~~
      |                                        |   |
      |                                        |   uint64_t {aka long unsigned int}
      |                                        mTypes
Exit Code:
1