#include <stlsoft/util/options_verifier.hpp>
Public Types | |
typedef T | value_type |
typedef XP | exception_policy_type |
typedef XP | parent_class_type |
typedef options_verifier< T, XP > | class_type |
Public Member Functions | |
options_verifier (T const &value, char const *failureMessage) | |
options_verifier (T const &value, exception_policy_type policy, char const *failureMessage) | |
options_verifier (class_type const &rhs) | |
~options_verifier () | |
Destructor. | |
template<typename U> | |
class_type & | test (U const &u) |
~options_verifier | ( | ) | [inline] |
Destructor.
CodeWarrior doesn't support uncaught_exception, so we have a potentially nasty situation whereby an options_verifier could be being destroyed as part of the cleanup of another exception. However, since options_verifier should never be created other than by calling verify_options(), this means that instances will always be temporary, which means that they'll never exist for long enough for an external exception to enter their lifetime. This is another reason why the failure message is char const*, and not string, and why m_value is a reference, not a value.