update boost
This commit is contained in:
@@ -48,7 +48,7 @@ public:
|
||||
/// Returns new argc
|
||||
int remainder()
|
||||
{
|
||||
return m_argc;
|
||||
return static_cast<int>(m_argc);
|
||||
}
|
||||
|
||||
/// Returns true, if we reached end on input
|
||||
|
||||
@@ -39,9 +39,9 @@ namespace runtime {
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE param_error : public std::exception {
|
||||
public:
|
||||
~param_error() BOOST_NOEXCEPT_OR_NOTHROW {}
|
||||
BOOST_TEST_DEFAULTED_FUNCTION(~param_error() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE, {})
|
||||
|
||||
virtual const char * what() const BOOST_NOEXCEPT_OR_NOTHROW
|
||||
const char * what() const BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE
|
||||
{
|
||||
return msg.c_str();
|
||||
}
|
||||
@@ -58,13 +58,13 @@ protected:
|
||||
class BOOST_SYMBOL_VISIBLE init_error : public param_error {
|
||||
protected:
|
||||
explicit init_error( cstring param_name ) : param_error( param_name ) {}
|
||||
~init_error() BOOST_NOEXCEPT_OR_NOTHROW {}
|
||||
BOOST_TEST_DEFAULTED_FUNCTION(~init_error() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE, {})
|
||||
};
|
||||
|
||||
class BOOST_SYMBOL_VISIBLE input_error : public param_error {
|
||||
protected:
|
||||
explicit input_error( cstring param_name ) : param_error( param_name ) {}
|
||||
~input_error() BOOST_NOEXCEPT_OR_NOTHROW {}
|
||||
BOOST_TEST_DEFAULTED_FUNCTION(~input_error() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE, {})
|
||||
};
|
||||
|
||||
//____________________________________________________________________________//
|
||||
@@ -73,7 +73,7 @@ template<typename Derived, typename Base>
|
||||
class BOOST_SYMBOL_VISIBLE specific_param_error : public Base {
|
||||
protected:
|
||||
explicit specific_param_error( cstring param_name ) : Base( param_name ) {}
|
||||
~specific_param_error() BOOST_NOEXCEPT_OR_NOTHROW {}
|
||||
BOOST_TEST_DEFAULTED_FUNCTION(~specific_param_error() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE, {})
|
||||
|
||||
public:
|
||||
|
||||
@@ -166,7 +166,7 @@ public:
|
||||
: specific_param_error<ambiguous_param,input_error>( "" )
|
||||
, m_amb_candidates( amb_candidates ) {}
|
||||
#endif
|
||||
~ambiguous_param() BOOST_NOEXCEPT_OR_NOTHROW {}
|
||||
BOOST_TEST_DEFAULTED_FUNCTION(~ambiguous_param() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE, {})
|
||||
|
||||
std::vector<cstring> m_amb_candidates;
|
||||
};
|
||||
@@ -182,7 +182,7 @@ public:
|
||||
: specific_param_error<unrecognized_param,input_error>( "" )
|
||||
, m_typo_candidates( type_candidates ) {}
|
||||
#endif
|
||||
~unrecognized_param() BOOST_NOEXCEPT_OR_NOTHROW {}
|
||||
BOOST_TEST_DEFAULTED_FUNCTION(~unrecognized_param(), BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {})
|
||||
|
||||
std::vector<cstring> m_typo_candidates;
|
||||
};
|
||||
|
||||
@@ -148,7 +148,7 @@ protected:
|
||||
}
|
||||
|
||||
public:
|
||||
virtual ~basic_param() {}
|
||||
BOOST_TEST_DEFAULTED_FUNCTION(virtual ~basic_param(), {})
|
||||
|
||||
// Pubic properties
|
||||
std::string const p_name;
|
||||
@@ -322,15 +322,15 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
virtual basic_param_ptr clone() const
|
||||
basic_param_ptr clone() const BOOST_OVERRIDE
|
||||
{
|
||||
return basic_param_ptr( new parameter( *this ) );
|
||||
}
|
||||
virtual void produce_argument( cstring token, bool , arguments_store& store ) const
|
||||
void produce_argument( cstring token, bool , arguments_store& store ) const BOOST_OVERRIDE
|
||||
{
|
||||
m_arg_factory.produce_argument( token, this->p_name, store );
|
||||
}
|
||||
virtual void produce_default( arguments_store& store ) const
|
||||
void produce_default( arguments_store& store ) const BOOST_OVERRIDE
|
||||
{
|
||||
if( !this->p_has_default_value )
|
||||
return;
|
||||
@@ -366,12 +366,12 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
virtual basic_param_ptr clone() const
|
||||
basic_param_ptr clone() const BOOST_OVERRIDE
|
||||
{
|
||||
return basic_param_ptr( new option( *this ) );
|
||||
}
|
||||
|
||||
virtual void produce_argument( cstring token, bool negative_form, arguments_store& store ) const
|
||||
void produce_argument( cstring token, bool negative_form, arguments_store& store ) const BOOST_OVERRIDE
|
||||
{
|
||||
if( token.empty() )
|
||||
store.set( p_name, !negative_form );
|
||||
@@ -383,11 +383,11 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void produce_default( arguments_store& store ) const
|
||||
void produce_default( arguments_store& store ) const BOOST_OVERRIDE
|
||||
{
|
||||
m_arg_factory.produce_default( p_name, store );
|
||||
}
|
||||
virtual void cla_name_help( std::ostream& ostr, cstring cla_tag, cstring negation_prefix_, bool use_color = true ) const
|
||||
void cla_name_help( std::ostream& ostr, cstring cla_tag, cstring negation_prefix_, bool use_color = true ) const BOOST_OVERRIDE
|
||||
{
|
||||
namespace utils = unit_test::utils;
|
||||
namespace ut_detail = unit_test::ut_detail;
|
||||
@@ -398,7 +398,7 @@ private:
|
||||
}
|
||||
ostr << cla_tag;
|
||||
}
|
||||
virtual void value_help( std::ostream& ostr ) const
|
||||
void value_help( std::ostream& ostr ) const BOOST_OVERRIDE
|
||||
{
|
||||
if( p_value_hint.empty() )
|
||||
ostr << "<boolean value>";
|
||||
@@ -441,12 +441,12 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
virtual basic_param_ptr clone() const
|
||||
basic_param_ptr clone() const BOOST_OVERRIDE
|
||||
{
|
||||
return basic_param_ptr( new enum_parameter( *this ) );
|
||||
}
|
||||
|
||||
virtual void value_help( std::ostream& ostr ) const
|
||||
void value_help( std::ostream& ostr ) const BOOST_OVERRIDE
|
||||
{
|
||||
if( this->p_value_hint.empty() ) {
|
||||
ostr << "<";
|
||||
@@ -498,7 +498,7 @@ public:
|
||||
bool is_empty() const { return m_parameters.empty(); }
|
||||
/// Returns map of all the registered parameter
|
||||
storage_type const& all() const { return m_parameters; }
|
||||
/// Returns true if parameter with psecified name is registered
|
||||
/// Returns true if parameter with specified name is registered
|
||||
bool has( cstring name ) const
|
||||
{
|
||||
return m_parameters.find( name ) != m_parameters.end();
|
||||
|
||||
Reference in New Issue
Block a user