diff options
| author | Yonggang Luo <luoyonggang@gmail.com> | 2022-11-21 19:01:50 +0800 |
|---|---|---|
| committer | Yonggang Luo <luoyonggang@gmail.com> | 2022-11-22 15:42:15 +0800 |
| commit | af50f6a490db594c7c026082dbe85ea5ddf81fb8 (patch) | |
| tree | 07cb533edc17024c940ea7f1545acafcbe860f38 /src/util/bitset.h | |
| parent | 8c3268611604d0c7242f9e4b64796f4d4d895fbd (diff) | |
util: Remove EXPLICIT_CONVERSION macro and use c++11 explicit directly
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19895>
Diffstat (limited to 'src/util/bitset.h')
| -rw-r--r-- | src/util/bitset.h | 2 |
1 files changed, 1 insertions, 1 deletions
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++) \ |