Commit 9f6736c2 authored by Milo Yip's avatar Milo Yip

Add noexcept to the constructors

parent 46dc8e92
...@@ -687,7 +687,7 @@ public: ...@@ -687,7 +687,7 @@ public:
\note \c Array is always pass-by-value. \note \c Array is always pass-by-value.
\note the source array is moved into this value and the sourec array becomes empty. \note the source array is moved into this value and the sourec array becomes empty.
*/ */
GenericValue(Array a) : data_(a.value_.data_), flags_(a.value_.flags_) { GenericValue(Array a) RAPIDJSON_NOEXCEPT : data_(a.value_.data_), flags_(a.value_.flags_) {
a.value_.data_ = Data(); a.value_.data_ = Data();
a.value_.flags_ = kArrayFlag; a.value_.flags_ = kArrayFlag;
} }
...@@ -698,7 +698,7 @@ public: ...@@ -698,7 +698,7 @@ public:
\note \c Object is always pass-by-value. \note \c Object is always pass-by-value.
\note the source object is moved into this value and the sourec object becomes empty. \note the source object is moved into this value and the sourec object becomes empty.
*/ */
GenericValue(Object o) : data_(o.value_.data_), flags_(o.value_.flags_) { GenericValue(Object o) RAPIDJSON_NOEXCEPT : data_(o.value_.data_), flags_(o.value_.flags_) {
o.value_.data_ = Data(); o.value_.data_ = Data();
o.value_.flags_ = kObjectFlag; o.value_.flags_ = kObjectFlag;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment