# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1672362198 0 # Node ID 5b584c5ddc96080d7000f32ca84e31765400f6bb # Parent 32bd25b05918baca0465c4576696130d83f4fbb8 C++: GCC before 4.7 also doesn't support final. diff -r 32bd25b05918 -r 5b584c5ddc96 dw.hpp --- a/dw.hpp Thu Dec 29 23:46:17 2022 +0000 +++ b/dw.hpp Fri Dec 30 01:03:18 2022 +0000 @@ -26,6 +26,7 @@ // Attempt to allow compilation on GCC older than 4.7 #if defined(__GNUC__) && (__GNuC__ < 5 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)) #define override +#define final #endif // Attempt to allow compilation on MSVC older than 2012