>>>>> "Jay" == Jay Pipes <Jay.Pipes@stripped> writes:
Jay> -----BEGIN PGP SIGNED MESSAGE-----
Jay> Hash: SHA1
Jay> Michael Widenius wrote:
Roy> Templates are already introduced - they need guidelines for when and why.
>> Templates are fine to use as long as they are used only to remove
>> casts in the code, not to generate code.
Jay> Templates remove casts by generating code.
One line for one line is fine (the same way as a define).
And just enforcing types doesn't actually generate any assembler code
when comparing with the original code; It just removes compiler checks.
As long as this is the case, tools like gcov and gdb etc works fine.
Things starts to fall appart when you have templates that generates
many lines of code as then you can't be sure what code are used and
debugging also gets to be more difficult. Not forgetting about code