Class postconstructible

boost::postconstructible — A base class for classes with postconstructors, used in conjunction with deconstruct_ptr().

Synopsis

class postconstructible {
protected:
  // construct/copy/destruct
  virtual ~postconstructible();
  virtual void postconstruct();
};

Description

postconstructible protected construct/copy/destruct

  1. virtual ~postconstructible();
virtual void postconstruct();
Notes:

Override postconstruct() with your class's post-constructor. It will be called automatically if you manage your objects with shared_ptrs created with deconstruct_ptr().