4

What is the earliest GNU GCC (g++) version to support the TR1 extern templates? For example, is it already supported in version 4.0?

2 Answers2

6

You can find the list of C++-0x features supported and the G++ version that supports them here. There is a simple Yes in the column so I assume they're in 4.3 or possibly earlier.

Richard Corden
  • 21,389
  • 8
  • 58
  • 85
  • The linked page shows the compiler version now if the feature is supported. – lothar Apr 11 '09 at 01:44
  • But not in the case of "extern templates". It's simply a Yes there. However, IIRC it was people from GCC that proposed the idea, so it's possible that it has been in g++ for several versions. – Richard Corden Apr 14 '09 at 10:05
4

Per Richard's answer, this feature apparently came from gcc, where (according to the docs) it has existed since at least gcc 3.2.3.

Matthew
  • 2,593
  • 22
  • 25