MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / parser_parseReal

Function parser_parseReal

quest/src/core/parser.cpp:233–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231
232
233qreal parser_parseReal(string str) {
234
235 try {
236 return precisionAgnosticStringToFloat(str);
237 } catch (const invalid_argument&) {
238 error_attemptedToParseRealFromInvalidString();
239 } catch (const out_of_range&) {
240 error_attemptedToParseOutOfRangeReal();
241 }
242
243 // unreachable
244 return -1;
245}
246
247
248

Tested by

no test coverage detected