public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Forward declare a template class
@ 2004-02-10  4:55 Tuck Sin
  0 siblings, 0 replies; only message in thread
From: Tuck Sin @ 2004-02-10  4:55 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 352 bytes --]

Hi

Is there any way to forward declare a template class. 

For example,  if I have the following code, is there any way to forward declare the std::list without including list.h in my header file?

//test.h

#include <list>

class test
{
    public:
        test()
    private:
        std::list<int>* m_pNum;
} ;

Thanks

Tuck Sin

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-02-10  4:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-10  4:55 Forward declare a template class Tuck Sin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).