| 2589 | std::is_convertible<typename object_t::key_type, typename T::key_type>::value and |
| 2590 | std::is_convertible<basic_json_t, typename T::mapped_type>::value, int>::type = 0> |
| 2591 | T get_impl(T*) const |
| 2592 | { |
| 2593 | if (is_object()) |
| 2594 | { |
| 2595 | return T(m_value.object->begin(), m_value.object->end()); |
| 2596 | } |
| 2597 | else |
| 2598 | { |
| 2599 | throw std::domain_error("type must be object, but is " + type_name()); |
| 2600 | } |
| 2601 | } |
| 2602 | |
| 2603 | /// get an object (explicit) |
| 2604 | object_t get_impl(object_t*) const |