| 90 | |
| 91 | |
| 92 | int64_t to_int64( const fc::string& i ) |
| 93 | { |
| 94 | try |
| 95 | { |
| 96 | return boost::lexical_cast<int64_t>(i.c_str(), i.size()); |
| 97 | } |
| 98 | catch( const boost::bad_lexical_cast& e ) |
| 99 | { |
| 100 | FC_THROW_EXCEPTION( parse_error_exception, "Couldn't parse int64_t" ); |
| 101 | } |
| 102 | FC_RETHROW_EXCEPTIONS( warn, "${i} => int64_t", ("i",i) ) |
| 103 | } |
| 104 | |
| 105 | uint64_t to_uint64( const fc::string& i ) |
| 106 | { try { |
no test coverage detected