diff options
author | 2019-11-15 21:55:41 +0100 | |
---|---|---|
committer | 2019-11-15 22:16:37 +0100 | |
commit | bcfa9eae6f16c35254a5cee1fb992f988c0a86ce (patch) | |
tree | 8b42ff7a46d9be7b73e2c5b7170afe7c27d15180 /src/lib/netlist/plib/parray.h | |
parent | df143446696cee294a6ffd7ea6bc0b09a43d9c02 (diff) |
netlist: maintenance and bug fixes, remove DUMMY_INPUT. [Couriersud]
- Removed DUMMY_INPUT. NC (not connected) pins should now use NC_PIN.
If a NC_PIN is actually connected, an error will be logged and
validation will fail.
- Enabled "extended" validation. This will catch now if power terminals
are not connected.
- Added const and noexcept where appropriate.
- Removed dead code.
- Fixed the 7414 Schmitt-Trigger device to use nld_power_pins
Diffstat (limited to 'src/lib/netlist/plib/parray.h')
-rw-r--r-- | src/lib/netlist/plib/parray.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/netlist/plib/parray.h b/src/lib/netlist/plib/parray.h index ea240faaac7..c60698d10e1 100644 --- a/src/lib/netlist/plib/parray.h +++ b/src/lib/netlist/plib/parray.h @@ -24,14 +24,14 @@ namespace plib { template <typename FT, int SIZE> struct sizeabs { - static constexpr std::size_t ABS() { return (SIZE < 0) ? static_cast<std::size_t>(0 - SIZE) : static_cast<std::size_t>(SIZE); } + static constexpr std::size_t ABS() noexcept { return (SIZE < 0) ? static_cast<std::size_t>(0 - SIZE) : static_cast<std::size_t>(SIZE); } using container = typename std::array<FT, ABS()> ; }; template <typename FT> struct sizeabs<FT, 0> { - static constexpr std::size_t ABS() { return 0; } + static constexpr std::size_t ABS() noexcept { return 0; } //using container = typename std::vector<FT, arena_allocator<mempool, FT, 64>>; using container = typename std::vector<FT, aligned_allocator<FT, PALIGN_VECTOROPT>>; }; @@ -55,7 +55,7 @@ namespace plib { struct parray { public: - static constexpr std::size_t SIZEABS() { return sizeabs<FT, SIZE>::ABS(); } + static constexpr std::size_t SIZEABS() noexcept { return sizeabs<FT, SIZE>::ABS(); } using base_type = typename sizeabs<FT, SIZE>::container; using size_type = typename base_type::size_type; |