Forward declare a template class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux