Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C++

Compiler

gcc 8.3.0

Options
Warnings
Boost 1.69.0
C++14(GNU)
no pedantic
Raw compiler options
-DBROKEN

Author

anonymous

almost 7 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-8.3.0/include -std=gnu++14 -DBROKEN
prog.cc: In instantiation of 'Var::Var(T) [with T = std::vector<Var>]':
prog.cc:17:40:   required from here
prog.cc:7:23: error: cannot convert 'std::vector<Var>' to 'int' in initialization
     Var(T x) : value(x) {}
                       ^
Exit Code:
1