Can a template's generic type be scoped in C++?

31 views Asked by At

I'm trying to scope to the generic type of a template, like this:

template<typename T> void doSomething(T::SomeScopedType t) {...}

However, this leads to the compiler errors: variable or field ‘doSomething’ declared void expected ‘)’ before ‘t'

Is it possible to scope a generic type?

0

There are 0 answers