changeset 2925:32bd25b05918

C++: Fix MSVC older than 2012 which does not support final keyword.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 29 Dec 2022 23:46:17 +0000
parents 248e32f744f0
children 5b584c5ddc96
files dw.hpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dw.hpp	Thu Dec 29 23:20:12 2022 +0000
+++ b/dw.hpp	Thu Dec 29 23:46:17 2022 +0000
@@ -28,6 +28,11 @@
 #define override
 #endif	
 
+// Attempt to allow compilation on MSVC older than 2012
+#if defined(_MSC_VER) && _MSC_VER < 1700
+#define final
+#endif
+
 namespace DW 
 {