5 ms·
Templates have been in C++ for a very long time, like 30 years iirc. I am not a big C++ gal but I'm pretty sure TMP long predates C++11.
by jolux 5y ago
Templates have been in C++ for a very long time, like 30 years iirc. I am not a big C++ gal but I'm pretty sure TMP long predates C++11.
- est31 5y agoTMP is older than C++11 yes, but the trend to use it so extremely is new I think. Or maybe I got that wrong, idk.
- pjmlp 5y agoHere for you, https://docs.microsoft.com/en-us/cpp/atl/active-template-library-atl-concepts?view=msvc-160 https://docs.microsoft.com/en-us/cpp/atl/active-template-lib... In 2000 it was version 3.0 alongside Visual C++ 6.0.
- deleted 5y ago[deleted]
- galangalalgol 5y agoI was using both templates and the stl heavily in 2002. I started learning c++ in 94 or 95 can't remember. Turbo c++ did not have templates, before the 98 standard it mostly was c with classes. And lots of unnecessary inheritance and overloading. Edit, should include that the experience in 2002 was on a corporate project which ultimately had many millions of lines of code, so not just some crazy guy in a basement. Lots of crazy people were in the basement with me.
- est31 5y agoAlright, thanks for that anecdote. I was wrong about that then.
- pjmlp 5y agoTurbo C++ for Windows 3.1 already had template support, this was in 1993. On MS-DOS Borland C++ 2.0 was the first compiler to support them. Naturally this was work in progress, try to keep up with the latest stand from WG 21.