modern-wheel: add virtual destructor to BaseMultiParms class (#14899)

* modern-wheel: add virtual destructor

* modern-wheel: add maintainers
This commit is contained in:
noguchi-k 2020-02-19 14:48:46 +09:00 committed by GitHub
parent a92543803c
commit 4c215d1fed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,17 @@
--- spack-src/test/prototype_factory_test.cpp.org 2020-02-07 11:17:24.321582233 +0900
+++ spack-src/test/prototype_factory_test.cpp 2020-02-07 11:18:25.598262173 +0900
@@ -58,6 +58,7 @@
virtual clone_type clone(int a) = 0;
virtual clone_type clone(int a, int b) = 0;
virtual int get() = 0;
+ virtual ~BaseMultiParms() {}
};
class DerivedSum : public BaseMultiParms {
@@ -121,4 +122,4 @@
auto objb = factory.create(0, 3, 6);
BOOST_CHECK_EQUAL(objb->get(), 9);
}
-BOOST_AUTO_TEST_SUITE_END()
\ No newline at end of file
+BOOST_AUTO_TEST_SUITE_END()

View File

@ -14,6 +14,7 @@ class ModernWheel(CMakePackage):
homepage = "https://github.com/alalazo/modern_wheel"
url = "https://github.com/alalazo/modern_wheel/archive/1.2.tar.gz"
maintainers = ['alalazo']
version('1.2', sha256='48612f698d7159f0eb10d93ddc3e2682b06a54d3a836ff227636be3261aed15e')
version('1.1', sha256='d8ba4891257b96108e9b9406a556f8ced3b71ce85c3fcdca6bfd9cc37bf010a3')
@ -35,6 +36,9 @@ class ModernWheel(CMakePackage):
depends_on('boost +system +filesystem', when='@:1.1.999')
depends_on('boost@:1.65.999 +system +filesystem', when='@1.2:')
# add virtual destructor to BaseMultiParms class.
patch('add_virtual_destructor.patch')
def cmake_args(self):
spec = self.spec
return [