The C++ specification says the default destructor deletes all non-static members. Nevertheless, I can\'t manage to achieve that.
I have this:
class N
Is there any reason why you use a pointer when the pointed-to object seems to belong the contained object? Just store the object by value:
class M { N n; public: M() : n() { } };