From 6b8e9824a670fe81601805e6ebce24446ca3aacf Mon Sep 17 00:00:00 2001 From: EternalPhane Date: Sat, 3 Feb 2018 17:12:09 +0800 Subject: [PATCH] fix #2211 --- contributors.txt | 1 + runtime/Cpp/runtime/src/support/Any.cpp | 3 --- runtime/Cpp/runtime/src/support/Any.h | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/contributors.txt b/contributors.txt index ffd3b9b2e..e2124b25d 100644 --- a/contributors.txt +++ b/contributors.txt @@ -179,3 +179,4 @@ YYYY/MM/DD, github id, Full name, email 2017/12/01, SebastianLng, Sebastian Lang, sebastian.lang@outlook.com 2017/12/03, oranoran, Oran Epelbaum, oran / epelbaum me 2017/12/27, jkmar, Jakub Marciniszyn, marciniszyn.jk@gmail.com +2018/01/29, EternalPhane, Zongyuan Zuo, eternalphane@gmail.com diff --git a/runtime/Cpp/runtime/src/support/Any.cpp b/runtime/Cpp/runtime/src/support/Any.cpp index 3dd1a94bf..b324cc15d 100644 --- a/runtime/Cpp/runtime/src/support/Any.cpp +++ b/runtime/Cpp/runtime/src/support/Any.cpp @@ -11,6 +11,3 @@ Any::~Any() { delete _ptr; } - -Any::Base::~Base() { -} diff --git a/runtime/Cpp/runtime/src/support/Any.h b/runtime/Cpp/runtime/src/support/Any.h index 0e72b5718..aa08ac0cc 100644 --- a/runtime/Cpp/runtime/src/support/Any.h +++ b/runtime/Cpp/runtime/src/support/Any.h @@ -105,7 +105,7 @@ private: struct Cloneable> : std::is_copy_constructible {}; struct Base { - virtual ~Base(); + virtual ~Base() {}; virtual Base* clone() const = 0; };