Are there optimized c++ compilers for template use?

后端 未结 8 578
心在旅途
心在旅途 2020-12-13 15:20

C++ templates have been a blessing in my everyday work because of its power. But one cannot ignore the (very very very very long) compilation time that results from the heav

8条回答
  •  别那么骄傲
    2020-12-13 15:49

    I think templates themselves are not so complex in themselves. We'll see when concepts are introduced in c++0x, etc., but at the moment, templates are just (almost) as macros, so the real problem is not that if you have optimized c++ compilers for templates. The problem is that templates do generate such a huge amount of code when compiling, that make compilation slower.

提交回复
热议问题