Remove exception specifications in favor of noexcept keyword
This commit is contained in:
@@ -41,12 +41,12 @@ namespace chaiscript
|
||||
class reserved_word_error : public std::runtime_error
|
||||
{
|
||||
public:
|
||||
reserved_word_error(const std::string &t_word) throw()
|
||||
reserved_word_error(const std::string &t_word) noexcept
|
||||
: std::runtime_error("Reserved word not allowed in object name: " + t_word), m_word(t_word)
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~reserved_word_error() throw() {}
|
||||
virtual ~reserved_word_error() noexcept {}
|
||||
|
||||
std::string word() const
|
||||
{
|
||||
@@ -64,12 +64,12 @@ namespace chaiscript
|
||||
class global_non_const : public std::runtime_error
|
||||
{
|
||||
public:
|
||||
global_non_const() throw()
|
||||
global_non_const() noexcept
|
||||
: std::runtime_error("a global object must be const")
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~global_non_const() throw() {}
|
||||
virtual ~global_non_const() noexcept {}
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user