I'm trying to compile this c++ code
template<int I> using Foo = int;
using Bar = int;
and getting these compiler errors (with g++ -c test.cpp
)
test.cpp:1:17: error: expected unqualified-id before ‘using’
template<int I> using Foo = int;
test.cpp:2:7: error: expected nested-name-specifier before ‘Bar’
using Bar = int;