Language
C++
Compiler
clang 6.0.1
Options
Warnings
Boost 1.68.0
C++2a
no pedantic
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-6.0.1/include -std=c++2a
Exit Code:
1
Author
anonymous
over 6 years ago
C++
clang 6.0.1
Author
anonymous
over 6 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-6.0.1/include -std=c++2a
prog.cc:17:11: error: alias template 'alias' requires template arguments; argument deduction only allowed for class templates
alias b(2); //not working, but why?
^
prog.cc:12:1: note: template is declared here
using alias = cls<T>;
^
1 error generated.