summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/parray.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-01-20 21:15:22 +0100
committer couriersud <couriersud@gmx.org>2020-01-20 21:15:22 +0100
commit9e272e4b551d14e7032913f0aa972e2dd45fb4bd (patch)
treeb6c7c56b187f18f33eaba2f585a04ef433211ecf /src/lib/netlist/plib/parray.h
parent81703afe74615ec5cc399dd91946e4d3b05d83a7 (diff)
netlist: code maintenance. (nw)
- remove pthrow trampline as proposed by Vas. - identify throwing code by adding noexcept(false) - move "connected term" information to setup code. - srcclean
Diffstat (limited to 'src/lib/netlist/plib/parray.h')
-rw-r--r--src/lib/netlist/plib/parray.h8
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);
}