Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Boost 1.73.0
C++17
-pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=c++17 -pedantic Exit Code: 
1
Author
anonymous
about 5 years ago
C++
gcc 10.1.0
Author
anonymous
about 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=c++17 -pedantic prog.cc: In function 'int main()':
prog.cc:13:15: error: 'Finalizer::Finalizer()' is private within this context
   13 |     Finalizer fin;
      |               ^~~
prog.cc:4:5: note: declared private here
    4 |     Finalizer() {
      |     ^~~~~~~~~
prog.cc:13:15: error: 'Finalizer::~Finalizer()' is private within this context
   13 |     Finalizer fin;
      |               ^~~
prog.cc:7:5: note: declared private here
    7 |     ~Finalizer() {
      |     ^