D vs C++ metaprogramming: why are c++ templates inherently slow

Timon Gehr timon.gehr at gmx.ch
Sun Nov 4 12:44:35 PST 2012


On 11/04/2012 08:47 PM, Mehrdad wrote:
> On Sunday, 4 November 2012 at 16:44:30 UTC, evansl wrote:
>>   that instantiating a template is inherently expensive
>
> Just a guess, but perhaps pattern-matching templates is NP-complete?
>

That does not say anything about evaluation speed.


More information about the Digitalmars-d mailing list