Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   class templates and parameter passing to constructors in c++ (http://www.go4expert.com/forums/class-templates-parameter-passing-t7173/)

hk vedamurthy 4Nov2007 11:43

class templates and parameter passing to constructors in c++
 
what wrong in this statement
cosequential is a base class in cosequential.h
strclass is a class in strclass.h
strlist inherits cosequential class and inludes strclass
in this class i want to send parameter to the base classs i.e cosequential class constructor
the statement is like this
stlist::strlist(int i,int j):coseqential<String&>(i)
{
}
cosequential uses the class template
i am getting error at this point.

shabbir 4Nov2007 23:16

Re: class templates and parameter passing to constructors in c++
 
You have submitted the post as an Article and I have moved to the forum for discussion. Also can you share the error you are getting.


All times are GMT +5.5. The time now is 02:25.