Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • But if I add TList as template parameter like you have shown I get an error when attempting to use the declaration: typedef AwesomeClass<int> BaseClassIteratorInt; as there are too few parameters. Having a semi colon at the end of a function declaration does not really make any difference although I have removed it as it was not intentional! Commented Feb 28, 2014 at 10:57
  • @Stefan If the class requires two template parameters, then you must supply two parameters. Try this: typedef AwesomeClass<std::list<int>, int> BaseClassIteratorInt; Commented Feb 28, 2014 at 11:21
  • That works but it is already what I have now. The libraries I am replacing only use one parameter in the typedef to declare their classes. If possible I would like to interface to be identical. Commented Feb 28, 2014 at 11:28