Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 1 | From 340110292b35d367205953a59e7eab28e1f4a0bb Mon Sep 17 00:00:00 2001 |
| 2 | From: Daniel Frey <d.frey@gmx.de> |
| 3 | Date: Sat, 7 Apr 2018 09:13:51 +0200 |
| 4 | Subject: [PATCH] Fix clang-warning about non-virtual dtor |
| 5 | |
| 6 | Upstream-Status: Backport [https://github.com/taocpp/PEGTL/commit/340110292b35d367205953a59e7eab28e1f4a0bb] |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | --- |
| 9 | src/example/pegtl/json_classes.hpp | 2 +- |
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 11 | |
| 12 | --- a/src/example/pegtl/json_classes.hpp |
| 13 | +++ b/src/example/pegtl/json_classes.hpp |
| 14 | @@ -34,10 +34,7 @@ namespace examples |
| 15 | : type( in_type ) |
| 16 | { |
| 17 | } |
| 18 | - |
| 19 | - ~json_base() |
| 20 | - { |
| 21 | - } |
| 22 | + virtual ~json_base() = default; |
| 23 | }; |
| 24 | |
| 25 | inline std::ostream& operator<<( std::ostream& o, const json_base& j ) |