1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

class templates and parameter passing to constructors in c++

Discussion in 'C++' started by hk vedamurthy, Nov 4, 2007.

  1. hk vedamurthy

    hk vedamurthy New Member

    Joined:
    Nov 4, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    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.
     

Share This Page