Metaprogramming in C++ and in D

后端 未结 10 1918
生来不讨喜
生来不讨喜 2021-01-30 04:46

The template mechanism in C++ only accidentally became useful for template metaprogramming. On the other hand, D\'s was designed specifically to facilitate this. And apparently

10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 05:50

    There are quiet a few things you can do in template metaprogramming in D that you cannot do in C++. The most important thing is that you can do template metaprogramming WITHOUT SO MUCH OF A PAIN!

提交回复
热议问题