summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2020-02-08 10:13:46 +0100
committerAnatol Belski <ab@php.net>2020-02-08 10:13:46 +0100
commit34bab6c9fcf0305a6c15ce3f8b8f26c55a015a62 (patch)
tree71f6b98b9dc67871298f24d3683b2b09d5f10c82
parentbcfb7b2be99093b70105d9e2b9df98623c8d6e59 (diff)
downloadphp-git-34bab6c9fcf0305a6c15ce3f8b8f26c55a015a62.tar.gz
Update bundled stdxx check macros
-rw-r--r--build/php_cxx_compile_stdcxx.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/build/php_cxx_compile_stdcxx.m4 b/build/php_cxx_compile_stdcxx.m4
index 8005721c05..3c8d598e63 100644
--- a/build/php_cxx_compile_stdcxx.m4
+++ b/build/php_cxx_compile_stdcxx.m4
@@ -87,6 +87,7 @@ dnl
# 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
@@ -149,11 +150,13 @@ namespace cxx11
struct Base
{
+ virtual ~Base() {}
virtual void f() {}
};
struct Derived : public Base
{
+ virtual ~Derived() override {}
virtual void f() override {}
};