C++26: std::indirect

8 points by raymii


lcapaldo

Recursive types: a struct Node { int value; std::indirect<Node> next; }; just works

Does it “just work”? Given

indirect has no null or empty state by design.

seems like you really need an empty state to not have an infinite recursive construction in this example.