aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2018-02-15 22:43:23 +0100
committerRobin Krahl <me@robin-krahl.de>2018-02-15 22:43:23 +0100
commit9d36dacdbfe9aed072ae4ea18231e9a4cdff2894 (patch)
tree1389ddb60e3d3d4fbef710ab392d70f4f4481b2a /include
parent9c658f9a1107b1879b87aa53dbb1dab60668e2b5 (diff)
downloadsqlitepp-9d36dacdbfe9aed072ae4ea18231e9a4cdff2894.tar.gz
sqlitepp-9d36dacdbfe9aed072ae4ea18231e9a4cdff2894.tar.bz2
Add default constructors to Uncopyable
Diffstat (limited to 'include')
-rw-r--r--include/sqlitepp/sqlitepp.h6
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&);