summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/palloc.h
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-07-01 02:09:14 +0200
committer couriersud <couriersud@arcor.de>2016-07-01 02:09:14 +0200
commitcaafc0f7823054c21a67f096650b2f4a333469c3 (patch)
treebff4849aa0c539fa0cc06ed630f83fd949e37ebc /src/lib/netlist/plib/palloc.h
parent1f0dc8903f8b865107af2e74758b0ad042c2a8b5 (diff)
Netlist improvements:
- nltool now accepts -Ddefine=value to pass on to netlists - improved option handling and added "dummy" options to add grouping and examples in help output. - improved --cmd=listdevices output - Fix dynamic timestepping. This will work with breakout using real capacitor modelling instead of delay devices. Really slow, but very useful to calibrate timings. - Fix an awful bug in timing for delay devices. - Switched to clang 3.8 and made code compile with -Weverything -Werror -Wno-old-style-cast -Wno-padded -Wno-weak-vtables -Wno-missing-variable-declarations -Wno-conversion -Wno-c++98-compat -Wno-float-equal -Wno-cast-align -Wno-global-constructors -Wno-c++98-compat-pedantic -Wno-exit-time-destructors -Wno-format-nonliteral -Wno-weak-template-vtables This was a helpful exercise since it brought forward some serious issues with implicit constructors. [Couriersud]
Diffstat (limited to 'src/lib/netlist/plib/palloc.h')
-rw-r--r--src/lib/netlist/plib/palloc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/netlist/plib/palloc.h b/src/lib/netlist/plib/palloc.h
index 8b49d4367b1..5b734785145 100644
--- a/src/lib/netlist/plib/palloc.h
+++ b/src/lib/netlist/plib/palloc.h
@@ -24,8 +24,10 @@ namespace plib {
class pexception : public std::exception
{
public:
- pexception(const pstring &text);
- virtual ~pexception() throw() {}
+ explicit pexception(const pstring text);
+ pexception(const pexception &e) : std::exception(e) { m_text = e.m_text; }
+
+ virtual ~pexception() noexcept {}
const pstring &text() { return m_text; }