Nullable instantiator anyone?

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 17 11:35:57 PDT 2014


I'm missing an instantiator function for std.typecons:Nullable. 
Is this is intentional? If not, is this

Nullable!T nullable(T)(T a)
{
     return typeof(return)(a);
}

sufficient for our needs?


More information about the Digitalmars-d-learn mailing list