From c6c0909f13cf6e941f35be550b5c76f475277155 Mon Sep 17 00:00:00 2001
From: Matteo Varalta <matteo.varalta@txtgroup.com>
Date: 周一, 29 4月 2019 22:13:18 +0800
Subject: [PATCH] Example use DEFAULT

---
 src/tools/base_lib/CryptoHelper.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/tools/base_lib/CryptoHelper.h b/src/tools/base_lib/CryptoHelper.h
index 545c6ab..c1751f8 100644
--- a/src/tools/base_lib/CryptoHelper.h
+++ b/src/tools/base_lib/CryptoHelper.h
@@ -3,6 +3,7 @@
 
 #include <memory>
 #include <cstddef>
+#include <string>
 
 namespace license {
 using namespace std;
@@ -20,7 +21,7 @@
 class CryptoHelper {
 
 protected:
-	CryptoHelper();
+	inline CryptoHelper(){};
 
 public:
 	virtual void generateKeyPair() = 0;
@@ -30,7 +31,7 @@
 	virtual const string signString(const void* privateKey,
 			size_t pklen, const string& license) const = 0;
 	static unique_ptr<CryptoHelper> getInstance();
-	virtual ~CryptoHelper();
+	inline virtual ~CryptoHelper(){};
 };
 }
 #endif

--
Gitblit v1.9.1