When does template instantiation bloat matter in practice?

前端 未结 5 842
忘了有多久
忘了有多久 2021-01-02 00:56

It seems that in C++ and D, languages which are statically compiled and in which template metaprogramming is a popular technique, there is a decent amount of concern about t

5条回答
  •  轮回少年
    2021-01-02 01:44

    I think you'll need to find an older compiler to see the template code bloat in practice. Modern C++ compilers (and linkers) have been able to optimize it away for a while.

提交回复
热议问题