nothrow/@nogc inference troubles with emplace/move?

Manu turkeyman at gmail.com
Tue Aug 27 05:17:18 UTC 2024


I'm getting a lot of nothrow/@nogc errors where I would have expected the
attributed to be inferred...
In particular; core.lifetime stuff, I can't live without that, but I'm
finding that move and emplace are both often not inferring the nothrow and
@nogc attributes correctly, and so they break my code.

Is this a known issue? Should I expect attribute inference to work
comprehensively?

I've copy-pasted core.lifetime into my own library, stripped it bare and
marked everything `nothrow @nogc`, and that works... but I'm not really
keen to do this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20240827/b416bbef/attachment.htm>


More information about the Digitalmars-d mailing list