templates inner class cross references
Marcel <[email protected]>
| Newsgroups | gmane.comp.programming.cppug |
|---|---|
| Message-ID | <[email protected]> |
two classes
class outer
{
class inner
{
};
};
first problem is that they are big, I wanted to put
their declaration in separate files, so:
class outer
{
class inner;
};
class outer::inner
{
};
but they have cross reference, so I would have to
class outer;
inside class inner file declaration
so when the compiler gets to the definition it
wouldn't got any problems
but these two classes are template classes, they only
have a .h file
when the compiler gets to inner declaration it
complains about the not existance of outer
can declaration of the same classe be made in diferent
places?
for now I solved the problem
the inner class is not a inner class of outer, it is
global, it is working but is not a good solution, I
wanted the know if anyone can sugest a better way of
doing this
thanks in advance
marcel
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/cppug/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/