diff options
author | Robin Krahl <me@robin-krahl.de> | 2018-02-15 22:43:23 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2018-02-15 22:43:23 +0100 |
commit | 9d36dacdbfe9aed072ae4ea18231e9a4cdff2894 (patch) | |
tree | 1389ddb60e3d3d4fbef710ab392d70f4f4481b2a | |
parent | 9c658f9a1107b1879b87aa53dbb1dab60668e2b5 (diff) | |
download | sqlitepp-9d36dacdbfe9aed072ae4ea18231e9a4cdff2894.tar.gz sqlitepp-9d36dacdbfe9aed072ae4ea18231e9a4cdff2894.tar.bz2 |
Add default constructors to Uncopyable
-rw-r--r-- | include/sqlitepp/sqlitepp.h | 6 |
1 files changed, 4 insertions, 2 deletions
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, <em>Effective C++</em>, 3rd Edition, Item 6. class Uncopyable { protected: - Uncopyable() {} - ~Uncopyable() {} + Uncopyable() = default; + ~Uncopyable() = default; + Uncopyable(Uncopyable&&) = default; + Uncopyable& operator=(Uncopyable&&) = default; private: Uncopyable(const Uncopyable&); |