[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: [OT] Declare template class within a class?
From: Craig Drummond <cpdrummond () freeuk ! com>
Date: 2001-10-19 14:55:40
[Download RAW message or body]
This is completely OT, but no one I ask knows anything about this...
Why can't I do the following:
class X
{
private:
template <class t>
class Y
{
....
};
....
};
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.
Thanks
Craig.
>> 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