summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pstonum.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/pstonum.h')
-rw-r--r--src/lib/netlist/plib/pstonum.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/netlist/plib/pstonum.h b/src/lib/netlist/plib/pstonum.h
index eed69e85883..737dca9f471 100644
--- a/src/lib/netlist/plib/pstonum.h
+++ b/src/lib/netlist/plib/pstonum.h
@@ -95,7 +95,7 @@ namespace plib
#endif
template<typename T, typename S>
- T pstonum(const S &arg, const std::locale &loc = std::locale::classic())
+ T pstonum(const S &arg, const std::locale &loc = std::locale::classic()) noexcept(false)
{
decltype(arg.c_str()) cstr = arg.c_str();
std::size_t idx(0);
@@ -106,11 +106,11 @@ namespace plib
//&& (ret == T(0) || plib::abs(ret) >= std::numeric_limits<T>::min() ))
{
if (cstr[idx] != 0)
- pthrow<pexception>(pstring("Continuation after numeric value ends: ") + pstring(cstr));
+ throw pexception(pstring("Continuation after numeric value ends: ") + pstring(cstr));
}
else
{
- pthrow<pexception>(pstring("Out of range: ") + pstring(cstr));
+ throw pexception(pstring("Out of range: ") + pstring(cstr));
}
return static_cast<T>(ret);
}