소스 검색

fixup! common: intrusive_red_black_tree: Disable static_assert that will not evaluate as constant on MSVC.

bunnei 5 년 전
부모
커밋
27a6ef64fd
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      src/common/intrusive_red_black_tree.h

+ 0 - 5
src/common/intrusive_red_black_tree.h

@@ -509,11 +509,6 @@ 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>>