| 807 | |
| 808 | template<typename JSONObject> |
| 809 | typename std::enable_if<detail::is_object<JSONObject>::value, value &>::type |
| 810 | value::operator=(JSONObject const & o) |
| 811 | { |
| 812 | if (is_object()) { |
| 813 | get<object>(*this) = object(o.begin(), o.end()); |
| 814 | return *this; |
| 815 | } |
| 816 | return *this = value(o); |
| 817 | } |
| 818 | |
| 819 | inline value & value::operator=(object && o) |
| 820 | { |