Language
C++
Compiler
clang 9.0.0
Options
Warnings
Boost 1.72.0
C++17
no pedantic
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/clang-9.0.0/include -std=c++17
Exit Code:
1
Author
anonymous
over 5 years ago
C++
clang 9.0.0
Author
anonymous
over 5 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/clang-9.0.0/include -std=c++17
prog.cc:11:8: error: no viable constructor or deduction guide for deduction of template arguments of 'vec3'
vec3 v3 = {1.0, 2.0, 1.0};
^
prog.cc:6:8: note: candidate function template not viable: requires 0 arguments, but 3 were provided
struct vec3 {
^
prog.cc:6:8: note: candidate function template not viable: requires 1 argument, but 3 were provided
1 error generated.