Skip to content

Commit 34bab6c

Browse files
committed
Update bundled stdxx check macros
1 parent bcfb7b2 commit 34bab6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/php_cxx_compile_stdcxx.m4

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ dnl
8787
# Copyright (c) 2015 Paul Norman <penorman@mac.com>
8888
# Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
8989
# Copyright (c) 2016, 2018 Krzesimir Nowak <qdlacz@gmail.com>
90+
# Copyright (c) 2019 Enji Cooper <yaneurabeya@gmail.com>
9091
#
9192
# Copying and distribution of this file, with or without modification, are
9293
# permitted in any medium without royalty provided the copyright notice
@@ -149,11 +150,13 @@ namespace cxx11
149150
150151
struct Base
151152
{
153+
virtual ~Base() {}
152154
virtual void f() {}
153155
};
154156
155157
struct Derived : public Base
156158
{
159+
virtual ~Derived() override {}
157160
virtual void f() override {}
158161
};
159162

0 commit comments

Comments
 (0)