/**
* The constructors
*/
- json_base_element()
+ json_base_element() noexcept
: _mandatory(false), _set(false) {
}
* @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;
* The brackets operator
* @return the value
*/
- const T& operator()() const {
+ const T& operator()() const noexcept {
return _value;
}
_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;
};
/*!