[Issue 22293] Nullable should define opCast!bool
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 1 09:09:44 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=22293
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #9039 "Fix Bugzilla 22293: opCast!bool for Nullable"
was merged into master:
- fc83d371c21ca1b1f71d6dc3e6dde13b0de50ab9 by Paul Backus:
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