summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2021-05-01 14:16:26 -0700
committerGravatar bunnei2021-05-05 16:40:54 -0700
commit27a6ef64fd06b7fd5de8d3dc9a3939368593b808 (patch)
tree497ba51f6146c46a6377f135f79ecd33e7d3225f
parentfixup! hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject. (diff)
downloadyuzu-27a6ef64fd06b7fd5de8d3dc9a3939368593b808.tar.gz
yuzu-27a6ef64fd06b7fd5de8d3dc9a3939368593b808.tar.xz
yuzu-27a6ef64fd06b7fd5de8d3dc9a3939368593b808.zip
fixup! common: intrusive_red_black_tree: Disable static_assert that will not evaluate as constant on MSVC.
-rw-r--r--src/common/intrusive_red_black_tree.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common/intrusive_red_black_tree.h b/src/common/intrusive_red_black_tree.h
index 15f972054..1f696fe80 100644
--- a/src/common/intrusive_red_black_tree.h
+++ b/src/common/intrusive_red_black_tree.h
@@ -509,11 +509,6 @@ private:
509 509
510private: 510private:
511 static constexpr TypedStorage<Derived> DerivedStorage = {}; 511 static constexpr TypedStorage<Derived> DerivedStorage = {};
512
513#ifndef _MSC_VER
514 // TODO(bunnei): Enable on MSVC once this can be const evaluated by the compiler
515 static_assert(GetParent(GetNode(GetPointer(DerivedStorage))) == GetPointer(DerivedStorage));
516#endif
517}; 512};
518 513
519template <auto T, class Derived = impl::GetParentType<T>> 514template <auto T, class Derived = impl::GetParentType<T>>