Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc 9.2.0

Options
Warnings
Don't Use Boost
C++11
-pedantic-errors

Author

anonymous

over 5 years ago

$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic-errors
prog.cc: In function 'int main()':
prog.cc:9:40: error: static assertion failed: Temporary CSingleLock objects are forbidden, did you forget a variable name?
    9 | #define CSingleLock(...) static_assert(false, \
      |                                        ^~~~~
prog.cc:14:3: note: in expansion of macro 'CSingleLock'
   14 |   CSingleLock (&m, true);
      |   ^~~~~~~~~~~
Exit Code:
1