|
![](/i/fill.gif) |
Darren New <dne### [at] san rr com> wrote:
> I'll have to look at this again (and
> look up some syntax to see what "x::y : z" means :-)
That might surprise many beginner and mid-level C++ programmers, but
there's nothing special going on there. You can pre-declare an inner
class and declare it later. The "x::y" part simply means "class y inside
class x". And the ": z" part means, of course, inheritance from z.
In other words, this is perfectly valid (and quite handy):
class A
{
class B;
...
};
class A::B
{
...
};
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |