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:
parent
a747098b65
commit
4733df3d1b
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue