]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/seastar/include/seastar/json/json_elements.hh
import quincy beta 17.1.0
[ceph.git] / ceph / src / seastar / include / seastar / json / json_elements.hh
index 929e1bdf2930fff056d803e5fedb753e3027242f..fa6f7d4b7139fbc9ddc06e49f234fbe579afabb3 100644 (file)
@@ -48,7 +48,7 @@ public:
     /**
      * The constructors
      */
-    json_base_element()
+    json_base_element() noexcept
             : _mandatory(false), _set(false) {
     }
 
@@ -60,11 +60,11 @@ public:
      * @return true if this is not a mandatory parameter
      * or if it is and it's value is set
      */
-    virtual bool is_verify() {
+    virtual bool is_verify() noexcept {
         return !(_mandatory && !_set);
     }
 
-    json_base_element& operator=(const json_base_element& o) {
+    json_base_element& operator=(const json_base_element& o) noexcept {
         // Names and mandatory are never changed after creation
         _set = o._set;
         return *this;
@@ -120,7 +120,7 @@ public:
      * The brackets operator
      * @return the value
      */
-    const T& operator()() const {
+    const T& operator()() const noexcept {
         return _value;
     }
 
@@ -301,6 +301,9 @@ struct json_return_type {
         _body_writer = std::move(o._body_writer);
         return *this;
     }
+
+    json_return_type(const json_return_type&) = default;
+    json_return_type& operator=(const json_return_type&) = default;
 };
 
 /*!