]> www.ginac.de Git - ginac.git/blobdiff - m4/ax_cxx_compile_stdcxx.m4
[BUGFIX] Prevent crashes in find_common_factor()
[ginac.git] / m4 / ax_cxx_compile_stdcxx.m4
index 9e9eaedaaad3b9dd97db1f88f780cbafd0d02936..43087b2e6889ec6f8ebd2f8ba77f4a9a716f8ac2 100644 (file)
 #   Copyright (c) 2015 Paul Norman <penorman@mac.com>
 #   Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
 #   Copyright (c) 2016, 2018 Krzesimir Nowak <qdlacz@gmail.com>
+#   Copyright (c) 2019 Enji Cooper <yaneurabeya@gmail.com>
 #
 #   Copying and distribution of this file, with or without modification, are
 #   permitted in any medium without royalty provided the copyright notice
 #   and this notice are preserved.  This file is offered as-is, without any
 #   warranty.
 
-#serial 10
+#serial 11
 
 dnl  This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macro
 dnl  (serial version number 13).
@@ -189,11 +190,13 @@ namespace cxx11
 
     struct Base
     {
+      virtual ~Base() {}
       virtual void f() {}
     };
 
     struct Derived : public Base
     {
+      virtual ~Derived() override {}
       virtual void f() override {}
     };