pegtl: change to virtual destructor (#14939)

* pegtl: change to virtual destructor

* pegtl: fix patch
This commit is contained in:
noguchi-k 2020-02-18 23:08:10 +09:00 committed by GitHub
parent 86a3d58159
commit f95348074b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,13 @@
--- spack-src/src/example/pegtl/json_classes.hpp.org 2020-02-14 11:07:25.117102793 +0900
+++ spack-src/src/example/pegtl/json_classes.hpp 2020-02-14 11:08:06.841397607 +0900
@@ -35,9 +35,7 @@
{
}
- ~json_base()
- {
- }
+ virtual ~json_base() = default;
};
inline std::ostream& operator<<( std::ostream& o, const json_base& j )

View File

@ -18,6 +18,9 @@ class Pegtl(CMakePackage):
url = "https://github.com/taocpp/PEGTL/tarball/2.1.4"
git = "https://github.com/taocpp/PEGTL.git"
version('develop', branch='master')
version('master', branch='master')
version('2.1.4', sha256='d990dccc07b4d9ba548326d11c5c5e34fa88b34fe113cb5377da03dda29f23f2')
version('2.0.0', sha256='5aae0505077e051cae4d855c38049cc6cf71103a6cc8d0ddef01a576e8a60cc0')
# Ref: https://github.com/taocpp/PEGTL/blob/master/src/example/pegtl/json_classes.hpp
patch('change_to_virtual_destructor.patch', when='@:2.4')