summaryrefslogtreecommitdiff
path: root/common/access/test.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-12-13 21:57:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-01-23 21:20:44 +0300
commitfc3fb39c90ab7fe5fccbe3f3bc0eb2645157bb96 (patch)
tree6c8c1bfb5fe89f7378b92ac066b4ca8ecfd25228 /common/access/test.hxx
parent02367faedb16b6186e8852de47e5b749dc48c2df (diff)
Switch to build2
Diffstat (limited to 'common/access/test.hxx')
-rw-r--r--common/access/test.hxx18
1 files changed, 3 insertions, 15 deletions
diff --git a/common/access/test.hxx b/common/access/test.hxx
index ae71103..3a3424d 100644
--- a/common/access/test.hxx
+++ b/common/access/test.hxx
@@ -4,12 +4,10 @@
#ifndef TEST_HXX
#define TEST_HXX
-#include <common/config.hxx> // HAVE_CXX11
-
#include <string>
#include <vector>
#include <cstring> // std::memcpy, std::memcmp, std::memset
-#include <memory> // std::auto_ptr/std::unique_ptr
+#include <memory> // std::unique_ptr
#include <utility> // std::move
#include <odb/core.hxx>
@@ -239,11 +237,7 @@ namespace test3
{
struct object1;
-#ifdef HAVE_CXX11
typedef std::unique_ptr<object1> object1_ptr;
-#else
- typedef std::auto_ptr<object1> object1_ptr;
-#endif
#pragma db object pointer(object1_ptr)
struct object1
@@ -282,17 +276,11 @@ namespace test3
public:
const object1_ptr& p2 () const {return p2_;}
-#ifdef HAVE_CXX11
void p2 (object1_ptr p2) {p2_ = std::move (p2);}
-#else
- void p2 (object1_ptr p2) {p2_ = p2;}
-#endif
+
private:
-#ifdef HAVE_CXX11
#pragma db get(p2) set(p2 (std::move (?)))
-#else
- #pragma db access(p2)
-#endif
+
object1_ptr p2_;
};
}