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:8:23: error: expected unqualified-id before 'class'
8 | #define CSingleLock class CSingleLock
| ^~~~~
prog.cc:13:7: note: in expansion of macro 'CSingleLock'
13 | ex::CSingleLock name(&m, true); // should work
| ^~~~~~~~~~~