summaryrefslogtreecommitdiffstats
path: root/base/bind_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/bind_helpers.h')
-rw-r--r--base/bind_helpers.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/base/bind_helpers.h b/base/bind_helpers.h
index 92194e7..3293dbb 100644
--- a/base/bind_helpers.h
+++ b/base/bind_helpers.h
@@ -133,8 +133,17 @@ class SupportsAddRefAndRelease {
void Release();
};
+// MSVC warns when you try to use Base if T has a private destructor, the
+// common pattern for refcounted types. It does this even though no attempt to
+// instantiate Base is made. We disable the warning for this definition.
+#if defined(OS_WIN)
+#pragma warning(disable:4624)
+#endif
struct Base : public T, public BaseMixin {
};
+#if defined(OS_WIN)
+#pragma warning(default:4624)
+#endif
template <void(BaseMixin::*)(void)> struct Helper {};