diff options
Diffstat (limited to 'test.cc')
-rw-r--r-- | test.cc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -7,7 +7,7 @@ #include <zp/str> int main() { - [] consteval { + static_assert([] { static_assert(::zp::isptr<int> == false); static_assert(::zp::isptr<int *> == true); static_assert(::zp::isptr<int const *> == true); @@ -130,5 +130,7 @@ int main() { static_assert(::zp::maxval<long unsigned> == ::std::numeric_limits<long unsigned>::max()); static_assert(::zp::maxval<long long unsigned> == ::std::numeric_limits<long long unsigned>::max()); static_assert(::zp::maxval<wchar_t> == ::std::numeric_limits<wchar_t>::max()); - }(); + + return true; + }()); } |