diff options
author | couriersud <couriersud@gmx.org> | 2020-05-22 00:20:36 +0200 |
---|---|---|
committer | couriersud <couriersud@gmx.org> | 2020-05-22 01:15:18 +0200 |
commit | 6141fa4a9c9558460a8467388ea5e2f6dde461af (patch) | |
tree | 597bc70365bbb2eeac833d5d6d5de636d1452cef /src/lib/netlist/nltypes.h | |
parent | 5a43cc6432e86a7e6c90d98145151528fa07e9fb (diff) |
netlist: Fix performance issues and VC2019. [Couriersud]
For reasons unknown to me compile optimizations do not behave for
template code. If the implementation is in separate compile units, the
code compiles and performs.
Diffstat (limited to 'src/lib/netlist/nltypes.h')
-rw-r--r-- | src/lib/netlist/nltypes.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lib/netlist/nltypes.h b/src/lib/netlist/nltypes.h index 49591355988..149d59097bf 100644 --- a/src/lib/netlist/nltypes.h +++ b/src/lib/netlist/nltypes.h @@ -206,20 +206,6 @@ namespace netlist } }; - template<typename T, T V> - struct fintegral_constant - { - static constexpr const T value() noexcept { return V; } - typedef T value_type; - typedef fintegral_constant<T, V> type; - }; - - template <std::size_t V> - using fdesc_const = fintegral_constant<std::size_t, V>; - - template <typename T, T V> - using fdesc_const_t = fintegral_constant<T, V>; - /// \brief: used define a constant in device description struct /// /// See the 74125 implementation |