rvalue references

kink via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 9 05:26:46 PDT 2015


On Monday, 8 June 2015 at 20:16:13 UTC, bitwise wrote:
> static Mat4 transform()(const auto ref Vec3 pos, const auto ref 
> Vec3 scale, const auto ref Quat rot);

Horrific.

static Mat4 transform(in Vec3 pos, in Vec3 scale, in Quat rot);

would be so much better...


More information about the Digitalmars-d mailing list