From 0d33e8cff2cf1078d0cccbaa26c348e61a481bad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Roman=20W=C3=BCger?= <roman.wueger@gmx.at>
Date: Wed, 29 Jun 2016 06:49:38 +0200
Subject: [PATCH] fixup! CM_OVERRIDE: Visual Studio 2010 and below do not
 support override for destructors

---
 Source/Checks/cm_cxx_override.cxx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Source/Checks/cm_cxx_override.cxx b/Source/Checks/cm_cxx_override.cxx
index e196968..ff1f2ce 100644
--- a/Source/Checks/cm_cxx_override.cxx
+++ b/Source/Checks/cm_cxx_override.cxx
@@ -6,7 +6,13 @@ struct Foo
 
 struct Bar : Foo
 {
+#if (_MSC_VER <= 1600)
+  // Visual Studio 2010 and below do not support override for destructors
+  ~Bar() {}
+#else
   ~Bar() override {}
+#endif
+
   int test() const override { return 0; }
 };
 
-- 
2.7.4.windows.1

