Post #2636435
2026-04-07 12:07 UTC
@DanielaKEngert@hachyderm.io @andreasfertig@mas.to It still does not matter. It is not statically decidable in all cases anyway (unless someone adds pointer alignment to the type system, which P3100 does not talk about), so the Undefined Behaviour (or run-time assertion failure due to precondition violation) still remains.
Ignoring alignment requirement in a call to std::start_lifetime_as is a bug, and it really must not be used or taught that way.
Replies (1)
-
@DanielaKEngert@hachyderm.io 2026-04-07 12:11
@manx@mastodon.online @andreasfertig@mas.to Wat? You're asking for mandatory aligment tests by the user but also claim that such tests are not reliably doable by the implementation? Now, you see me puzzled...