alias and template instantiations (Re: Any word on the return-type const syntax? [OT])
Janice Caron
caron800 at googlemail.com
Sun Dec 9 12:34:59 PST 2007
On 12/9/07, Bill Baxter <dnewsgroup at billbaxter.com> wrote:
> The instatiate-if-aliased behavior of D is a little annoying because it
> means you can't create convenience aliases of your templates without
> bloating up your executable. For linear algebra types, for instance,
> many C++ libraries will provide typedefs for the most common
> combinations of floating point type and number of components, maybe a
> dozen or so of these.
This begs the question, will
enum SomeTemplate!(int) x;
instantiate the template if x is not used?
More information about the Digitalmars-d
mailing list