From af50f6a490db594c7c026082dbe85ea5ddf81fb8 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Mon, 21 Nov 2022 19:01:50 +0800 Subject: util: Remove EXPLICIT_CONVERSION macro and use c++11 explicit directly Signed-off-by: Yonggang Luo Reviewed-by: David Heidelberg Part-of: --- src/util/bitset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/bitset.h') diff --git a/src/util/bitset.h b/src/util/bitset.h index e1e5962e59f..9765345dc1d 100644 --- a/src/util/bitset.h +++ b/src/util/bitset.h @@ -446,7 +446,7 @@ __bitset_next_range(unsigned *start, unsigned *end, const BITSET_WORD *set, * it as, and N is the number of bits in the bitset. */ #define DECLARE_BITSET_T(T, N) struct T { \ - EXPLICIT_CONVERSION \ + explicit \ operator bool() const \ { \ for (unsigned i = 0; i < BITSET_WORDS(N); i++) \ -- cgit v1.2.3