3 ms·
C++ templates are not reflection; either compile time or runtime. There is a form of reflection, but that's RTTI, which is a totally different ballgame.
by shash 3y ago
C++ templates are not reflection; either compile time or runtime. There is a form of reflection, but that's RTTI, which is a totally different ballgame.
- Animats 3y agoTrue, but both come under the heading of adding a level of indirection at compile time. It's a tough language decision on how far to go in that direction. Go, pre-template, was minimalist on this. C++ probably went too far. Where to stop is a good question.