Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions include/boost/program_options/errors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace boost { namespace program_options {
/** gcc says that throw specification on dtor is loosened
* without this line
* */
~error_with_option_name() throw() {}
~error_with_option_name() noexcept {}


//void dump() const
Expand Down Expand Up @@ -183,7 +183,7 @@ namespace boost { namespace program_options {

/** Creates the error_message on the fly
* Currently a thin wrapper for substitute_placeholders() */
virtual const char* what() const throw();
virtual const char* what() const noexcept;

protected:
/** Used to hold the error text returned by what() */
Expand All @@ -209,7 +209,7 @@ namespace boost { namespace program_options {
multiple_values()
: error_with_option_name("option '%canonical_option%' only takes a single argument"){}

~multiple_values() throw() {}
~multiple_values() noexcept {}
};

/** Class thrown when there are several occurrences of an
Expand All @@ -220,7 +220,7 @@ namespace boost { namespace program_options {
multiple_occurrences()
: error_with_option_name("option '%canonical_option%' cannot be specified more than once"){}

~multiple_occurrences() throw() {}
~multiple_occurrences() noexcept {}

};

Expand All @@ -233,7 +233,7 @@ namespace boost { namespace program_options {
{
}

~required_option() throw() {}
~required_option() noexcept {}
};

/** Base class of unparsable options,
Expand All @@ -258,7 +258,7 @@ namespace boost { namespace program_options {
/** Does NOT set option name, because no option name makes sense */
virtual void set_option_name(const std::string&) {}

~error_with_no_option_name() throw() {}
~error_with_no_option_name() noexcept {}
};


Expand All @@ -270,7 +270,7 @@ namespace boost { namespace program_options {
{
}

~unknown_option() throw() {}
~unknown_option() noexcept {}
};


Expand All @@ -283,9 +283,9 @@ namespace boost { namespace program_options {
m_alternatives(xalternatives)
{}

~ambiguous_option() throw() {}
~ambiguous_option() noexcept {}

const std::vector<std::string>& alternatives() const throw() {return m_alternatives;}
const std::vector<std::string>& alternatives() const noexcept {return m_alternatives;}

protected:
/** Makes all substitutions using the template */
Expand Down Expand Up @@ -320,7 +320,7 @@ namespace boost { namespace program_options {
{
}

~invalid_syntax() throw() {}
~invalid_syntax() noexcept {}

kind_t kind() const {return m_kind;}

Expand All @@ -340,7 +340,7 @@ namespace boost { namespace program_options {
m_substitutions["invalid_line"] = invalid_line;
}

~invalid_config_file_syntax() throw() {}
~invalid_config_file_syntax() noexcept {}

/** Convenience functions for backwards compatibility */
virtual std::string tokens() const {return m_substitutions.find("invalid_line")->second; }
Expand All @@ -355,7 +355,7 @@ namespace boost { namespace program_options {
const std::string& original_token = "",
int option_style = 0):
invalid_syntax(kind, option_name, original_token, option_style) {}
~invalid_command_line_syntax() throw() {}
~invalid_command_line_syntax() noexcept {}
};


Expand All @@ -380,7 +380,7 @@ namespace boost { namespace program_options {
{
}

~validation_error() throw() {}
~validation_error() noexcept {}

kind_t kind() const { return m_kind; }

Expand Down