diff options
Diffstat (limited to 'src/lib/netlist/plib/parray.h')
-rw-r--r-- | src/lib/netlist/plib/parray.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/parray.h b/src/lib/netlist/plib/parray.h index c60698d10e1..e2454f5691b 100644 --- a/src/lib/netlist/plib/parray.h +++ b/src/lib/netlist/plib/parray.h @@ -76,21 +76,21 @@ namespace plib { } template <int X = SIZE > - parray(size_type size, typename std::enable_if<(X != 0), int>::type = 0) + parray(size_type size, typename std::enable_if<(X != 0), int>::type = 0) noexcept(false) : m_size(size) { if ((SIZE < 0 && size > SIZEABS()) || (SIZE > 0 && size != SIZEABS())) - pthrow<pexception>("parray: size error " + plib::to_string(size) + ">" + plib::to_string(SIZE)); + throw pexception("parray: size error " + plib::to_string(size) + ">" + plib::to_string(SIZE)); } template <int X = SIZE > - parray(size_type size, FT val, typename std::enable_if<(X != 0), int>::type = 0) + parray(size_type size, FT val, typename std::enable_if<(X != 0), int>::type = 0) noexcept(false) : m_size(size) { if ((SIZE < 0 && size > SIZEABS()) || (SIZE > 0 && size != SIZEABS())) - pthrow<plib::pexception>("parray: size error " + plib::to_string(size) + ">" + plib::to_string(SIZE)); + throw pexception("parray: size error " + plib::to_string(size) + ">" + plib::to_string(SIZE)); m_a.fill(val); } |