The motivation was not to save space, though? Or at least that's not at all my motivation for approving or using it. Breaking the structural restriction on recursive values while communicating the intent of the underlying T* is where I use it.
Of course it is. Aside from pimpl paradigm.. Why else would you anybody even really bother to use this thing unless it is to save space in a class's inherent sizeof()?
View all comments
Show parent comment
8
u/smdowney WG21, Text/Unicode SG, optional<T&> Aug 14 '26
The motivation was not to save space, though? Or at least that's not at all my motivation for approving or using it. Breaking the structural restriction on recursive values while communicating the intent of the underlying T* is where I use it.