Small language features (C++26)
= delete("reason"), the _ placeholder, user-generated static_assert messages, deleting incomplete types is ill-formed.
Connected features
No dependency lines — on the map this feature hangs off C++26 by a star edge.
Papers
4 · Varna 2023 → St. Louis 2024Makes _ a placeholder name that can be redeclared and never warns as unused.
Allows static_assert messages to be any constant expression with size() and data(), e.g. a formatted string.
Allows = delete("reason") so diagnostics can explain why a function is deleted.
Makes delete p ill-formed when p points to an incomplete class type, instead of undefined behaviour.