Templates class member functions not conditional?
monarch_dodra
monarchdodra at gmail.com
Tue Sep 11 06:12:57 PDT 2012
On Tuesday, 11 September 2012 at 11:33:05 UTC, bearophile wrote:
> monarch_dodra:
>
>> Is this not the case for D? Or is it currently a limitation?
>
> In this case I think D is working as designed. All functions
> inside a template are created when you instantiate it.
>
> [SNIP]
>
> Bye,
> bearophile
Well, the functions are declared inside the template, but do they
have to be validated and compiled?
I mean, technically, in C++, the functions are also there, just
not compiled and validated...
More information about the Digitalmars-d-learn
mailing list