I get an error <: cannot begin a template argument list on g++ compiler. Code
template class SomeClass; class Class; SomeClass<::Cla
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.