how to have alias this with an unaccessible member?

Dicebot m.strashun at gmail.com
Sat May 18 01:33:50 PDT 2013


Will this do?

--------------------

struct A(T)
{
     private T x;

     ref T get()
     {
         return x;
     }

     alias get this;
}

---------------------


More information about the Digitalmars-d-learn mailing list