diff --git a/picojson.h b/picojson.h index 346cf05..25b5876 100644 --- a/picojson.h +++ b/picojson.h @@ -415,9 +415,14 @@ SET(int64_t, int64, u_.int64_ = _val;) type_ = jtype##_type; \ setter \ } +MOVESET(bool, boolean, u_.boolean_ = std::move(_val);) MOVESET(std::string, string, u_.string_ = new std::string(std::move(_val));) MOVESET(array, array, u_.array_ = new array(std::move(_val));) MOVESET(object, object, u_.object_ = new object(std::move(_val));) +MOVESET(double, number, u_.number_ = std::move(_val);) +#ifdef PICOJSON_USE_INT64 +MOVESET(int64_t, int64, u_.int64_ = std::move(_val);) +#endif #undef MOVESET #endif