Merge pull request #71 from likebeta/master

support enum
This commit is contained in:
Niels 2015-05-09 15:23:51 +02:00
commit aca3f65bbe

View file

@ -418,6 +418,11 @@ class basic_json
: 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)
template<typename T, typename
std::enable_if<