| 1690 | T |
| 1691 | #else |
| 1692 | typename std::enable_if< |
| 1693 | std::is_arithmetic<T>::value && |
| 1694 | ! std::is_same<T, bool>::value, |
| 1695 | T>::type |
| 1696 | #endif |
| 1697 | to_number(system::error_code& ec) const noexcept |
| 1698 | { |
| 1699 | error e; |
| 1700 | auto result = to_number<T>(e); |
| 1701 | BOOST_JSON_FAIL(ec, e); |
| 1702 | return result; |
| 1703 | } |
| 1704 | |
| 1705 | template<class T> |
| 1706 | #ifdef BOOST_JSON_DOCS |