From ca8f78ff89696d0d0b4eb000d317a45dbc5eddf6 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Thu, 10 Aug 2017 22:22:13 -0600 Subject: [PATCH] JSON noexcept updates --- include/chaiscript/utility/json.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/chaiscript/utility/json.hpp b/include/chaiscript/utility/json.hpp index 679f1064..0b96dcae 100644 --- a/include/chaiscript/utility/json.hpp +++ b/include/chaiscript/utility/json.hpp @@ -300,7 +300,7 @@ class JSON } } - bool has_key( const std::string &key ) const { + bool has_key( const std::string &key ) const noexcept { if( internal.Type == Class::Object ) { return internal.Map->count(key) != 0; } @@ -318,10 +318,10 @@ class JSON } } - Class JSONType() const { return internal.Type; } + Class JSONType() const noexcept { return internal.Type; } /// Functions for getting primitives from the JSON object. - bool is_null() const { return internal.Type == Class::Null; } + bool is_null() const noexcept { return internal.Type == Class::Null; } std::string to_string() const { bool b; return to_string( b ); } std::string to_string( bool &ok ) const {