Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a
Exit Code:
1
Author
anonymous
about 4 years ago
C++
gcc 10.1.0
Author
anonymous
about 4 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a
prog.cc:1:14: error: expected ',' or '...' before '*=' token
1 | void Func(int*=nullptr)
| ^~
prog.cc: In function 'int main()':
prog.cc:8:7: error: too few arguments to function 'void Func(int)'
8 | Func();
| ^
prog.cc:1:6: note: declared here
1 | void Func(int*=nullptr)
| ^~~~