1

Possible Duplicate:
Where and why do I have to put the “template” and “typename” keywords?

Since yesterday, I see C++11 code that use something like ComplexTypeOrTypedef::template, for example from the last 2 hours, from two unrelated sources I saw it:

Google doesn't help me (it doesn't seem to care about the colons in my search: ``::template c++11`), the StackOverflow search neither, it's quite depressing!

What does this mysterious ::template things mean?

Community
  • 1
  • 1
Guillaume Papin
  • 1,340
  • 11
  • 16
  • 5
    See this FAQ: [What is the `->template`, `.template` and `::template` syntax about?](http://www.comeaucomputing.com/techtalk/templates/#templateprefix). – ildjarn Jul 18 '12 at 22:11
  • Also note this is not new to C++11. It applies just as much to C++03. – aschepler Jul 18 '12 at 22:32
  • Thanks you all for the pointer and sorry for the duplicate. I don't fully understand the syntax for now (when and how should I use it) but I will re-read the Johannes Schaub - litb answer. – Guillaume Papin Jul 18 '12 at 22:44

0 Answers0