M
Martin
What's wrong with the following code:
template <typename T = double>
class Base
{};
class Derived : public Base
{};
Compiling it with gcc gives me "expected class name before '{' token".
Saying "public Base<double>" instead of just "public Base" works, of
course, but how come the default template argument is not being used?
template <typename T = double>
class Base
{};
class Derived : public Base
{};
Compiling it with gcc gives me "expected class name before '{' token".
Saying "public Base<double>" instead of just "public Base" works, of
course, but how come the default template argument is not being used?