As far as I know, if we don't ask template to generate the code for us
It would not do it because template is "lazy". The codes generated by
template are same as handcrafted codes, so what makes template being blamed
by code bloat if you know how to handle it properly? I heard some guys say
template can't be used on embedded system because it would cause code bloat.
It looks like an inevitable side effect bring by template.
Do we really have some situations that we must take the price of code bloat?
Pointer type could be solved by specialize or smart compiler, nontype parameter
could be factor out too.What makes code bloat become an inevitable side effect bring by template?Should I stop using template if I have to develop software on embedded system?
Thank you very much.