From da22d0f7b215c0e20a7f2748e2755fa31eff2400 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Tue, 1 Mar 2022 11:55:13 +0800 Subject: [PATCH] try vc2015 countof ut --- src/libipc/utility/countof.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libipc/utility/countof.h b/src/libipc/utility/countof.h index 82c1d02..b464e68 100644 --- a/src/libipc/utility/countof.h +++ b/src/libipc/utility/countof.h @@ -48,8 +48,8 @@ template ::value , bool = countof_trait_has_Size::value> struct countof_trait; -template -struct countof_trait { +template +struct countof_trait { constexpr static auto countof(C const &c) noexcept(noexcept(c.size())) { return c.size(); }