diff options
Diffstat (limited to 'common/view/olv/test7.hxx')
-rw-r--r-- | common/view/olv/test7.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/view/olv/test7.hxx b/common/view/olv/test7.hxx index 83bd5e7..dcfac32 100644 --- a/common/view/olv/test7.hxx +++ b/common/view/olv/test7.hxx @@ -7,6 +7,7 @@ #include <string> #include <memory> // unique_ptr +#include <utility> // std::move #include <odb/core.hxx> @@ -44,6 +45,11 @@ namespace test7 #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; }; |