Alex Rivera | Logout

<: cannot begin a template argument list

Asked 2010-10-17T09:14:10.097
17

I get an error <: cannot begin a template argument list on g++ compiler. Code

template<typename T> class SomeClass;
class Class;

SomeClass<::Class>* cls;
Edit
Report

1 Answer

10

Try the following instead:

SomeClass< ::Class>* cls;

You can find more info in this question about digraphs. This question about trigraphs could be helpful also.

answered 2010-10-17T09:16:23.647

Your Answer