Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


#ActualMatt-D

Posted 23 June 2013 - 12:46 PM

If it's a method (member function), you may also need the "template" keyword, as in the following:

t::template f<int>(); // call a function template

extra-fun example:

typename t::template iterator<int>::value_type v;

See:

http://stackoverflow.com/questions/610245/where-and-why-do-i-have-to-put-the-template-and-typename-keywords

http://eigen.tuxfamily.org/dox-devel/TopicTemplateKeyword.html#TopicTemplateKeywordExplanation // more details in "Resources for further reading" -- at the very bottom of the page


#1Matt-D

Posted 23 June 2013 - 12:45 PM

If it's a method (member function), you may also need the "template" keyword, as in the following:

typename t::template iterator<int>::value_type v;

See:

http://stackoverflow.com/questions/610245/where-and-why-do-i-have-to-put-the-template-and-typename-keywords

http://eigen.tuxfamily.org/dox-devel/TopicTemplateKeyword.html#TopicTemplateKeywordExplanation // more details in "Resources for further reading" -- at the very bottom of the page


PARTNERS