Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Class template simple_exception_policy

boost::CV::simple_exception_policy — Template to shortcut the constrained_value policy creation process.


// In header: <boost/date_time/constrained_value.hpp>

template<typename rep_type, rep_type min_value, rep_type max_value, 
         typename exception_type> 
class simple_exception_policy {
  // types
  typedef rep_type value_type;

  struct exception_wrapper {

    // public member functions
    operator std::out_of_range() const;

  // public static functions
  static rep_type min BOOST_PREVENT_MACRO_SUBSTITUTION() ;
  static rep_type max BOOST_PREVENT_MACRO_SUBSTITUTION() ;
  static void on_error(rep_type, rep_type, violation_enum) ;


simple_exception_policy public static functions

  1. static rep_type min BOOST_PREVENT_MACRO_SUBSTITUTION() ;
  2. static rep_type max BOOST_PREVENT_MACRO_SUBSTITUTION() ;
  3. static void on_error(rep_type, rep_type, violation_enum) ;