From f9fa6b1c81b99303d3448bcb355bc6e3f4d3c44a Mon Sep 17 00:00:00 2001 From: couriersud Date: Mon, 8 Jun 2020 02:52:39 +0200 Subject: netlist: code maintenance. (nw) - more c++14, use enable_if_t instead of enable_if - cleaned up the use of memory allocation arenas - reduce MACRO usage, use std::conditional where possible --- src/lib/netlist/plib/pfunction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/netlist/plib/pfunction.cpp') diff --git a/src/lib/netlist/plib/pfunction.cpp b/src/lib/netlist/plib/pfunction.cpp index b424aae7e2d..c5e011dfbb9 100644 --- a/src/lib/netlist/plib/pfunction.cpp +++ b/src/lib/netlist/plib/pfunction.cpp @@ -279,7 +279,7 @@ namespace plib { } template - static inline typename std::enable_if::value, NT>::type + static inline std::enable_if_t::value, NT> lfsr_random(std::uint16_t &lfsr) noexcept { std::uint16_t lsb = lfsr & 1; @@ -290,7 +290,7 @@ namespace plib { } template - static inline typename std::enable_if::value, NT>::type + static inline std::enable_if_t::value, NT> lfsr_random(std::uint16_t &lfsr) noexcept { std::uint16_t lsb = lfsr & 1; -- cgit v1.2.3-70-g09d2