mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 20:47:14 +02:00
Change names to ErrorCodeEnum and ErrorConditionEnum to conform to N2798
[SVN r49290]
This commit is contained in:
@ -224,9 +224,9 @@ namespace boost
|
|||||||
error_condition() : m_val(0), m_cat(&get_generic_category()) {}
|
error_condition() : m_val(0), m_cat(&get_generic_category()) {}
|
||||||
error_condition( int val, const error_category & cat ) : m_val(val), m_cat(&cat) {}
|
error_condition( int val, const error_category & cat ) : m_val(val), m_cat(&cat) {}
|
||||||
|
|
||||||
template <class ConditionEnum>
|
template <class ErrorConditionEnum>
|
||||||
error_condition(ConditionEnum e,
|
error_condition(ErrorConditionEnum e,
|
||||||
typename boost::enable_if<is_error_condition_enum<ConditionEnum> >::type* = 0)
|
typename boost::enable_if<is_error_condition_enum<ErrorConditionEnum> >::type* = 0)
|
||||||
{
|
{
|
||||||
*this = make_error_condition(e);
|
*this = make_error_condition(e);
|
||||||
}
|
}
|
||||||
@ -239,9 +239,9 @@ namespace boost
|
|||||||
m_cat = &cat;
|
m_cat = &cat;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename ConditionEnum>
|
template<typename ErrorConditionEnum>
|
||||||
typename boost::enable_if<is_error_condition_enum<ConditionEnum>, error_condition>::type &
|
typename boost::enable_if<is_error_condition_enum<ErrorConditionEnum>, error_condition>::type &
|
||||||
operator=( ConditionEnum val )
|
operator=( ErrorConditionEnum val )
|
||||||
{
|
{
|
||||||
*this = make_error_condition(val);
|
*this = make_error_condition(val);
|
||||||
return *this;
|
return *this;
|
||||||
@ -311,9 +311,9 @@ namespace boost
|
|||||||
error_code() : m_val(0), m_cat(&get_system_category()) {}
|
error_code() : m_val(0), m_cat(&get_system_category()) {}
|
||||||
error_code( int val, const error_category & cat ) : m_val(val), m_cat(&cat) {}
|
error_code( int val, const error_category & cat ) : m_val(val), m_cat(&cat) {}
|
||||||
|
|
||||||
template <class CodeEnum>
|
template <class ErrorCodeEnum>
|
||||||
error_code(CodeEnum e,
|
error_code(ErrorCodeEnum e,
|
||||||
typename boost::enable_if<is_error_code_enum<CodeEnum> >::type* = 0)
|
typename boost::enable_if<is_error_code_enum<ErrorCodeEnum> >::type* = 0)
|
||||||
{
|
{
|
||||||
*this = make_error_code(e);
|
*this = make_error_code(e);
|
||||||
}
|
}
|
||||||
@ -325,9 +325,9 @@ namespace boost
|
|||||||
m_cat = &cat;
|
m_cat = &cat;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename CodeEnum>
|
template<typename ErrorCodeEnum>
|
||||||
typename boost::enable_if<is_error_code_enum<CodeEnum>, error_code>::type &
|
typename boost::enable_if<is_error_code_enum<ErrorCodeEnum>, error_code>::type &
|
||||||
operator=( CodeEnum val )
|
operator=( ErrorCodeEnum val )
|
||||||
{
|
{
|
||||||
*this = make_error_code(val);
|
*this = make_error_code(val);
|
||||||
return *this;
|
return *this;
|
||||||
|
Reference in New Issue
Block a user