Language
C++
Compiler
gcc 9.2.0
Options
Warnings
Don't Use Boost
C++11
-pedantic-errors
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic-errors
Exit Code:
1
Author
anonymous
about 5 years ago
C++
gcc 9.2.0
Author
anonymous
about 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);
| ^~~~~~~~~~~