Login
From:
Arthur O’Dwyer
(Uncensored)
subscribe
Type-erasure, trivial relocation, and lethal sirens – Arthur O'Dwyer – Stuff mostly about C++
https://quuxplusone.github.io/blog/2025/05/01/siren-song-of-p2786-keywords/
links
backlinks
Tagged with:
proposal
wg21
relocatability
triviality
type-erasure
Here’s a simple and trivially relocatable MoveOnlyCallable type. This is like std::move_only_function<int(int) const>, except that the “take int and return int” part is hard-coded, for simplicity. (Godbolt.)
Roast topics
Find topics
Find it!