Language
C++
Compiler
clang 8.0.0
Options
Warnings
Optimization
Don't Use Boost
C++03
-pedantic
$ clang++ prog.cc -Wall -Wextra -O2 -march=native -std=c++98 -pedantic
Exit Code:
1
Author
anonymous
almost 6 years ago
C++
clang 8.0.0
Author
anonymous
almost 6 years ago
$ clang++ prog.cc -Wall -Wextra -O2 -march=native -std=c++98 -pedantic
prog.cc:16:12: error: no matching constructor for initialization of 'std::__1::thread'
thread t1(task1, "Hello");
^ ~~~~~~~~~~~~~~
/opt/wandbox/clang-8.0.0/include/c++/v1/thread:408:9: note: candidate constructor template not viable: requires single argument '__f', but 2 arguments were provided
thread::thread(_Fp __f)
^
/opt/wandbox/clang-8.0.0/include/c++/v1/thread:289:5: note: candidate constructor not viable: requires 1 argument, but 2 were provided
thread(const thread&);
^
/opt/wandbox/clang-8.0.0/include/c++/v1/thread:296:5: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
thread() _NOEXCEPT : __t_(_LIBCPP_NULL_THREAD) {}
^
1 error generated.