Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is still not ambiguous: in order for 'foo::a' to be a template, 'a' must be prefixed with the 'template' disambiguator keyword, and in fact for any of a, b, or c to be types at all they would have to be prefixed with 'typename'. As written, it must parse as two expressions; if 'foo::a' turns out to be a class template at instantiation time, it's an error.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: