https://issues.dlang.org/show_bug.cgi?id=8411
Steven Schveighoffer <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull CC| |[email protected] --- Comment #3 from Steven Schveighoffer <[email protected]> --- I have a further, more difficult use case for this: if(auto d = calculateSomeDuration()) { display(d); } This is not as easily worked around with the current API. Adding opCast!bool was easy enough: https://github.com/dlang/druntime/pull/1793 --
