diff options
Diffstat (limited to 'test.cc')
-rw-r--r-- | test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -164,7 +164,7 @@ template<typename ltyp,typename rtyp> static auto cmp(int unsigned & num,int uns auto const getval = [](auto const & valref) { using typ = typename ::zp::remref<decltype (valref)>::typ; - if constexpr (::zp::ischr<typ>::val) {return static_cast<::zp::i02m>(valref);} + if constexpr (::zp::ischrtyp<typ>::val) {return static_cast<::zp::i02m>(valref);} else if constexpr (::zp::isptr<typ>::val) {return reinterpret_cast<void *>(valref);} else {return valref;} }; |