...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::contract::make_old — Make an old value pointer (but not for virtual public functions and public functions overrides).
// In header: <boost/contract/old.hpp> old_pointer make_old(old_value const & old);
The related old value pointer will not be null if the specified old value was actually copied. This function is often only used by code expanded by BOOST_CONTRACT_OLDOF(old_expr)
:
boost::contract::make_old(boost::contract::copy_old() ? old_expr : boost::contract::null_old())
See Also:
Parameters: |
|
||
Returns: |
Old value pointer (usually implicitly converted to either |