diff options
Diffstat (limited to 'src/common/intrusive_red_black_tree.h')
-rw-r--r-- | src/common/intrusive_red_black_tree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/intrusive_red_black_tree.h b/src/common/intrusive_red_black_tree.h index c0bbcd457..15f972054 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<Derived> 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 <auto T, class Derived = impl::GetParentType<T>> |