标签: c++ templates generics scope template-function
我正在尝试使用模板的泛型类型,例如:
template<typename T> void doSomething(T::SomeScopedType t) {...}
但是,这会导致编译错误: variable or field ‘doSomething’ declared void expected ‘)’ before ‘t'
variable or field ‘doSomething’ declared void expected ‘)’ before ‘t'
是否可以确定泛型类型的范围?