[Issue 22293] Nullable should define opCast!bool
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Jul 31 18:44:11 UTC 2024
    
    
  
https://issues.dlang.org/show_bug.cgi?id=22293
Dlang Bot <dlang-bot at dlang.rocks> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@pbackus created dlang/phobos pull request #9039 "Fix Bugzilla 22293:
opCast!bool for Nullable" fixing this issue:
- Fix Bugzilla 22293: opCast!bool for Nullable
  The second opCast overload is necessary to allow built-in implicit
  conversions (e.g., mutable to const) to be performed explicitly via a
  cast expression. Nullable.opEquals depends on this behavior.
https://github.com/dlang/phobos/pull/9039
--
    
    
More information about the Digitalmars-d-bugs
mailing list