3 ms·
> Having template with duck typing does not imply being slow Right, the original Concepts designs in C++0x had type checking of template definitions. It had a
by gpderetta 7y ago
> Having template with duck typing does not imply being slow
Right, the original Concepts designs in C++0x had type checking of template definitions. It had a huge negative impact on compilation time and was one reason why it was dropped.
Mind you, had it been accepted it is possible it might have been optimizable, and certainly retrofitting it didn't help, but yes, you are right, not checking is not going to slow things down.