From d9205f82b35c61de9eaa381578f4aceaf94b75b1 Mon Sep 17 00:00:00 2001 From: bunnei Date: Wed, 31 Mar 2021 14:35:46 -0700 Subject: [PATCH] common: intrusive_red_black_tree: Disable static_assert that will not evaluate as constant on MSVC. --- src/common/intrusive_red_black_tree.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/intrusive_red_black_tree.h b/src/common/intrusive_red_black_tree.h index c0bbcd4579..15f9720544 100644 --- a/src/common/intrusive_red_black_tree.h +++ b/src/common/intrusive_red_black_tree.h @@ -509,7 +509,11 @@ private: private: static constexpr TypedStorage DerivedStorage = {}; + +#ifndef _MSC_VER + // TODO(bunnei): Enable on MSVC once this can be const evaluated by the compiler static_assert(GetParent(GetNode(GetPointer(DerivedStorage))) == GetPointer(DerivedStorage)); +#endif }; template >