[Issue 4733] Possible bugs caused by dynamic arrays in boolean evaluation context
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 26 13:18:46 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=4733
Paul Backus <snarwin+bugzilla at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |snarwin+bugzilla at gmail.com
--- Comment #42 from Paul Backus <snarwin+bugzilla at gmail.com> ---
> If that is still a no-go then it seems we need something like:
>
> if ((auto arr = expr).ptr)
In C++17, you can write it like this:
if (auto arr = expr; arr.ptr)
--
More information about the Digitalmars-d-bugs
mailing list