From 49dc2dff68abb4bbf1f3ee8b0327de7d0a673d16 Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 14 Feb 2016 16:58:24 +0100 Subject: [PATCH] fixed error when compiled with Clang --- src/json.hpp | 10 +++++----- src/json.hpp.re2c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 6caa8def..6b4c92d5 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -719,7 +719,7 @@ class basic_json number_float_t number_float; /// default constructor (for null values) - json_value() noexcept = default; + json_value() = default; /// constructor for booleans json_value(boolean_t v) noexcept : boolean(v) {} /// constructor for numbers (integer) @@ -957,7 +957,7 @@ class basic_json @since version 1.0.0 */ - basic_json() noexcept = default; + basic_json() = default; /*! @brief create a null object (explicitly) @@ -6284,7 +6284,7 @@ class basic_json using iterator_category = std::bidirectional_iterator_tag; /// default constructor - const_iterator() noexcept = default; + const_iterator() = default; /// constructor for a given JSON instance explicit const_iterator(pointer object) noexcept @@ -6818,7 +6818,7 @@ class basic_json using reference = typename basic_json::reference; /// default constructor - iterator() noexcept = default; + iterator() = default; /// constructor for a given JSON instance explicit iterator(pointer object) noexcept @@ -7106,7 +7106,7 @@ class basic_json } /// default constructor - lexer() noexcept = default; + lexer() = default; // switch off unwanted functions lexer(const lexer&) = delete; diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 7f311ef9..6edc4ab1 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -719,7 +719,7 @@ class basic_json number_float_t number_float; /// default constructor (for null values) - json_value() noexcept = default; + json_value() = default; /// constructor for booleans json_value(boolean_t v) noexcept : boolean(v) {} /// constructor for numbers (integer) @@ -957,7 +957,7 @@ class basic_json @since version 1.0.0 */ - basic_json() noexcept = default; + basic_json() = default; /*! @brief create a null object (explicitly) @@ -6284,7 +6284,7 @@ class basic_json using iterator_category = std::bidirectional_iterator_tag; /// default constructor - const_iterator() noexcept = default; + const_iterator() = default; /// constructor for a given JSON instance explicit const_iterator(pointer object) noexcept @@ -6818,7 +6818,7 @@ class basic_json using reference = typename basic_json::reference; /// default constructor - iterator() noexcept = default; + iterator() = default; /// constructor for a given JSON instance explicit iterator(pointer object) noexcept @@ -7106,7 +7106,7 @@ class basic_json } /// default constructor - lexer() noexcept = default; + lexer() = default; // switch off unwanted functions lexer(const lexer&) = delete;