How to cast to void*, while bypassing alias this or opCast

2014-08-28 Thread monarch_dodra via Digitalmars-d-learn
I'm investigating a phobos regression. From doesPointTo: // static if (isPointer!S || is(S == class) || is(S == interface)) { const m = cast(void*) source; // Basically, given a pointer like structure, I want the void* equivalent. I really don't care about how S

Re: How to cast to void*, while bypassing alias this or opCast

2014-08-28 Thread anonymous via Digitalmars-d-learn
On Thursday, 28 August 2014 at 10:45:52 UTC, monarch_dodra wrote: I'm investigating a phobos regression. From doesPointTo: // static if (isPointer!S || is(S == class) || is(S == interface)) { const m = cast(void*) source; // Basically, given a pointer like structure,

Re: How to cast to void*, while bypassing alias this or opCast

2014-08-28 Thread monarch_dodra via Digitalmars-d-learn
On Thursday, 28 August 2014 at 11:02:03 UTC, anonymous wrote: On Thursday, 28 August 2014 at 10:45:52 UTC, monarch_dodra wrote: I'm investigating a phobos regression. From doesPointTo: // static if (isPointer!S || is(S == class) || is(S == interface)) { const m = cast(void*)