Strange rbtree behaviour

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 7 05:13:56 PDT 2016


On 07/07/2016 02:57 AM, Jonathan M Davis via Digitalmars-d-learn wrote:

 > then you should probably use a factory function. e.g.

And name that function "opCall" and you have a non-constructor that 
supports the default-constructor syntax. :p

     static B opCall()
     {
         // ...
     }

     auto b = B();

Ali



More information about the Digitalmars-d-learn mailing list