Re: [Dev-C++] help needed for friends in template class
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: cwic <cw...@ma...> - 2005-08-17 06:23:10
|
Hello bhadram, Wednesday, August 17, 2005, 8:51:11 AM, you wrote: br> Dear friends, br> I'd problem with usage of friends in br> templates in vc++ compiler. Please any one can help me. br> I want to make the Node class as frined to List class to br> access the private variables of Node class int list class but it br> is giving the compilation errors like this. With out the frinds br> class definition it is working fine. Can't understand how it can to "working fine", but as you ask for the friend class issue - it may be resolved with declaration of what the List class is. Insert this line on top of List1.h template <class T> class List; -- Best regards, cwic mailto:cw...@ma... |