diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-08 13:16:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-08 13:16:19 +0200 |
commit | a2dee4c3155a5892ea8e09f4d1712e0b60985dea (patch) | |
tree | b474836d37bcb3b766aab47bc92b85bcf11c20f3 /common/view/olv/test8.hxx | |
parent | 10be61ad26034a574a013c979549aaedf9aa8382 (diff) |
Add move constructors that VC12 doesn't provide implicitly
Diffstat (limited to 'common/view/olv/test8.hxx')
-rw-r--r-- | common/view/olv/test8.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/view/olv/test8.hxx b/common/view/olv/test8.hxx index d130b79..23cd82e 100644 --- a/common/view/olv/test8.hxx +++ b/common/view/olv/test8.hxx @@ -7,6 +7,7 @@ #include <string> #include <memory> // unique_ptr +#include <utility> // std::move #include <odb/core.hxx> @@ -41,6 +42,11 @@ namespace test8 #pragma db view object(object1) object(object2) struct view1 { + // VC12 workaround (no default move constructor generation). + // + view1 () {} + view1 (view1&& x): o2 (std::move (x.o2)), o1 (std::move (x.o1)) {} + unique_ptr<object2> o2; unique_ptr<object1> o1; }; |