std.allocator needs your help

Jacob Carlborg doob at me.com
Thu Sep 26 00:38:14 PDT 2013


On 2013-09-25 18:13, kraybit wrote:

> I believe Manu's example was about X having template parameters as well.
> As in
>      auto v = new Vec3!float(0,0,0);
>
>
> Either way, what would it be then? a) or b)?
>      auto v = new!(Vec3!float)(0,0,0); // a)
>      auto v = new!(Vec3!float(0,0,0)); // b)
> ?
>
>
> And which would be the same as:
>      auto v = new!Vec3!float(0,0,0);
> ?
>
> I'd assume it's the same as a), no?

Right.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list