From 22e07506cc763caa4b26dbded8b14c466d8d6949 Mon Sep 17 00:00:00 2001 From: couriersud Date: Tue, 5 Nov 2019 00:08:52 +0100 Subject: netlist: more consistent exception handling. (nw) Still not optimal, but better than what we had previously. No exception logging comes closer. --- src/lib/netlist/plib/pstring.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/netlist/plib/pstring.h') diff --git a/src/lib/netlist/plib/pstring.h b/src/lib/netlist/plib/pstring.h index 49905d9c54c..25e79f5bdec 100644 --- a/src/lib/netlist/plib/pstring.h +++ b/src/lib/netlist/plib/pstring.h @@ -113,6 +113,7 @@ public: pstring_t(C (&string)[N]) // NOLINT(cppcoreguidelines-avoid-c-arrays, modernize-avoid-c-arrays) { static_assert(N > 0,"pstring from array of length 0"); + // need std::exception since pexception depends on pstring if (string[N-1] != 0) throw std::exception(); m_str.assign(string, N - 1); -- cgit v1.2.3-70-g09d2