In the code below, I understand it to mean that myBigStruct is inheriting multiple things. The obvious part is it's inheriting 2 structs (mySmallStruct and someOtherStruct).
But I am not sure what it means to inherit from a shared pointer. (My understanding is that std::enabled_shared_from_this returns a shared pointer to a myBigStruct - presumably a pointer to the struct I am defining?)
Can somebody please explain?
struct myBigStruct final
: public mySmallStruct
, public std::enable_shared_from_this<myBigStruct>
, public someOtherStruct
{