[Issue 22569] emplace silently escapes @safe
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 4 15:09:25 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22569
--- Comment #1 from Stanislav Blinov <stanislav.blinov at gmail.com> ---
Correction: you'd need a cast not to call the target ctor, but to emulate one,
because struct initialization in D is not uniform. One of the various code
paths in the `emplace` implementation does this.
--
More information about the Digitalmars-d-bugs
mailing list