Is the following valid?:
template<typename T> class C { C1<C2<T>> someMember; };
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, you’d need to do something with the type, either make it a typedef or member, but yes:
>>is actually the right shift operator, so you need a space in there for it to work correctly. In C++0x, however, you can just type>>; it is parsed just fine.**Some lenient compilers will currently accept it.