Address of return value.
cal
callumenator at gmail.com
Tue Dec 11 08:45:53 PST 2012
On Tuesday, 11 December 2012 at 15:38:38 UTC, monarch_dodra wrote:
> On Tuesday, 11 December 2012 at 14:57:27 UTC, monarch_dodra
> wrote:
>> :/
>
> I got it to work with a cast, which removes the ambiguity:
>
> auto p = &cast(int)s.front;
>
> But it feels hackish. Any other way?
auto p = &(s.front());
Not sure if this is intended though, maybe some property
weirdness?
More information about the Digitalmars-d-learn
mailing list