G
Grizlyk
New C++ rules are always trying to do "fast" compilation - to compile code,
which must be compiled at point of instance only (not during declaration
stage). The behaviour is intoducing many wrong limitations.
Look at this strange limitation:
1. Can not declare templated friend
template< class T>
class X
{
friend class T;
//error: using template type parameter 'T' after 'class'
//error: friend declaration does not name a class or function
};
which must be compiled at point of instance only (not during declaration
stage). The behaviour is intoducing many wrong limitations.
Look at this strange limitation:
1. Can not declare templated friend
template< class T>
class X
{
friend class T;
//error: using template type parameter 'T' after 'class'
//error: friend declaration does not name a class or function
};