From 9d36dacdbfe9aed072ae4ea18231e9a4cdff2894 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 15 Feb 2018 22:43:23 +0100 Subject: Add default constructors to Uncopyable --- include/sqlitepp/sqlitepp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/sqlitepp/sqlitepp.h b/include/sqlitepp/sqlitepp.h index d75aa91..f9ed097 100644 --- a/include/sqlitepp/sqlitepp.h +++ b/include/sqlitepp/sqlitepp.h @@ -127,8 +127,10 @@ extern const std::string VERSION; /// inspired by Scott Meyers, Effective C++, 3rd Edition, Item 6. class Uncopyable { protected: - Uncopyable() {} - ~Uncopyable() {} + Uncopyable() = default; + ~Uncopyable() = default; + Uncopyable(Uncopyable&&) = default; + Uncopyable& operator=(Uncopyable&&) = default; private: Uncopyable(const Uncopyable&); -- cgit v1.2.3