summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-03-31 23:35:46 +0200
committerbunnei <bunneidev@gmail.com>2021-05-06 01:40:49 +0200
commitd9205f82b35c61de9eaa381578f4aceaf94b75b1 (patch)
tree3c64588af363c5db14691328ca691d82954d639c /src/common
parentcommon: common_funcs: Add helper macros for non-copyable and non-moveable. (diff)
downloadyuzu-d9205f82b35c61de9eaa381578f4aceaf94b75b1.tar
yuzu-d9205f82b35c61de9eaa381578f4aceaf94b75b1.tar.gz
yuzu-d9205f82b35c61de9eaa381578f4aceaf94b75b1.tar.bz2
yuzu-d9205f82b35c61de9eaa381578f4aceaf94b75b1.tar.lz
yuzu-d9205f82b35c61de9eaa381578f4aceaf94b75b1.tar.xz
yuzu-d9205f82b35c61de9eaa381578f4aceaf94b75b1.tar.zst
yuzu-d9205f82b35c61de9eaa381578f4aceaf94b75b1.zip
Diffstat (limited to '')
-rw-r--r--src/common/intrusive_red_black_tree.h4
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>>