I’m taking a C++ class, and my teacher mentioned in passing that the typename
keyword existed in C++ (as opposed to using the class
keyword in a template declaration), for backwards compatibility with “C templates.”
This blew my mind. I’ve never seen or heard tell of anything like C++’s templates (except, perhaps, the preprocessor… and that’s not really the same thing at all) in ANSI C. So, did I miss something huge somewhere, or is this a really esoteric extension by gcc
or something, or is my teacher way off-base?