aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2018-07-02 22:46:33 -0700
committerRichard Walters <rwalters@digitalstirling.com>2018-07-02 22:46:33 -0700
commite6d8e650b591e1e495822de356661e37a729f745 (patch)
tree94a19eb5be71267fc6a66d18fdc90edb9bfe3ac5
parent4cadf8d3bceb7a1bf419a44503072c3bce9913a7 (diff)
Allow default move semantics
-rw-r--r--include/Uri/Uri.hpp4
-rw-r--r--src/Uri.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/Uri/Uri.hpp b/include/Uri/Uri.hpp
index b64f0da..43e4ac3 100644
--- a/include/Uri/Uri.hpp
+++ b/include/Uri/Uri.hpp
@@ -25,9 +25,9 @@ namespace Uri {
public:
~Uri();
Uri(const Uri&) = delete;
- Uri(Uri&&) = delete;
+ Uri(Uri&&);
Uri& operator=(const Uri&) = delete;
- Uri& operator=(Uri&&) = delete;
+ Uri& operator=(Uri&&);
// Public methods
public:
diff --git a/src/Uri.cpp b/src/Uri.cpp
index 2d549c2..01f5141 100644
--- a/src/Uri.cpp
+++ b/src/Uri.cpp
@@ -580,6 +580,8 @@ namespace Uri {
};
Uri::~Uri() = default;
+ Uri::Uri(Uri&&) = default;
+ Uri& Uri::operator=(Uri&&) = default;
Uri::Uri()
: impl_(new Impl)