
20 Jun
2007
20 Jun
'07
8:10 p.m.
Mathias Gaunard wrote:
Ion Gaztañaga wrote:
I'm maybe too ignorant on this issue (forgive me if I'm shooting my foot) but compile time generation creates a lot of new types that lead also to more typeinfo and other stuff to be linked to the program.
AFAIK, creating new types doesn't add any data to the executable (except debugging info eventually) unless the type has static members (const integral ones don't count) or is polymorphic.
Type info is always emitted for a type, if not disabled completely or optimized away by compiler.