pegtl: change to virtual destructor (#14939)
* pegtl: change to virtual destructor * pegtl: fix patch
This commit is contained in:
parent
86a3d58159
commit
f95348074b
@ -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 )
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user