[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [OT] Declare template class within a class?
From:       Andrew Sutton <ansutton () sep ! com>
Date:       2001-10-19 15:32:37
[Download RAW message or body]

On Friday 19 October 2001 09:55, Craig Drummond wrote:
> This is completely OT, but no one I ask knows anything about this...
>
> Why can't I do the following:
>
> g++ (v2.8.1 - which is the version I'm using at work), complains: "
> invalid member template delcaration". I realise I could use namespacing,
> but I don't understand why the above doesn't work - it does if Y is not
> a template class.

beats me. i don't see why you wouldn't be able to do it. i've declared 
template functions inside a non-template class, but that really isn't the 
same thing...

actually, i got that to build with egcs 2.91.66, so maybe you need to upgrade 
your compiler.

Andrew Sutton
ansutton@sep.com
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic