0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd::json: Add more value ctor template specializations.

This commit is contained in:
Jason Volk 2017-11-30 10:34:12 -08:00
parent a747098b65
commit 4733df3d1b

View file

@ -142,7 +142,9 @@ namespace ircd::json
template<> value::value(const uint64_t &integer);
template<> value::value(const int64_t &integer);
template<> value::value(const float &floating);
template<> value::value(const uint32_t &integer);
template<> value::value(const int32_t &integer);
template<> value::value(const uint16_t &integer);
template<> value::value(const int16_t &integer);
template<> value::value(const bool &boolean);
template<> value::value(const std::string &str);
@ -309,11 +311,21 @@ ircd::json::value::value(const int32_t &integer)
:value{int64_t(integer)}
{}
template<> inline
ircd::json::value::value(const uint32_t &integer)
:value{int64_t(integer)}
{}
template<> inline
ircd::json::value::value(const int16_t &integer)
:value{int64_t(integer)}
{}
template<> inline
ircd::json::value::value(const uint16_t &integer)
:value{int64_t(integer)}
{}
inline
ircd::json::value::value(value &&other)
noexcept