...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
boost::contract::copy_old — Check if old values need to be copied (for virtual public functions and public function overrides).
// In header: <boost/contract/old.hpp> bool copy_old(virtual_ * v);
For example, this function always returns false when both postconditions and exception guarantees are not being checked (see
). In addition, this function returns false when overridden functions are being called subsequent times by this library to support subcontracting. This function is often only used by the code expanded by
True if old values need to be copied, false otherwise.