Skip to content

Comment on The missing C++ smart pointerparent

Comments

And yet nobody use calls a vector of 1 a pointer.

The question is not about the utility of box<T>, i am sure there are cases where such a structure would be need.

But box<T> is not a "pointer" in the C++ sense same as an array/vector of 1 is not a pointer.

The authors is needlessly complicating things and mixing concept there are pretty orthogonal. And i think this is the result of trying to fit box<T> which is not a pointer inside a taxonomy of pointers...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.