commit
aca3f65bbe
1 changed files with 5 additions and 0 deletions
|
@ -418,6 +418,11 @@ class basic_json
|
||||||
: m_type(value_t::number_integer), m_value(value)
|
: m_type(value_t::number_integer), m_value(value)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
/// create an int number to support enum type (implicit)
|
||||||
|
inline basic_json(int int_enum)
|
||||||
|
: m_type(value_t::number_integer), m_value((NumberIntegerType)int_enum)
|
||||||
|
{}
|
||||||
|
|
||||||
/// create an integer number (implicit)
|
/// create an integer number (implicit)
|
||||||
template<typename T, typename
|
template<typename T, typename
|
||||||
std::enable_if<
|
std::enable_if<
|
||||||
|
|
Loading…
Reference in a new issue