aboutsummaryrefslogtreecommitdiff
path: root/common/container/change-tracking/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/container/change-tracking/test.hxx
parent02367faedb16b6186e8852de47e5b749dc48c2df (diff)
Switch to build2
Diffstat (limited to 'common/container/change-tracking/test.hxx')
-rw-r--r--common/container/change-tracking/test.hxx15
1 files changed, 2 insertions, 13 deletions
diff --git a/common/container/change-tracking/test.hxx b/common/container/change-tracking/test.hxx
index be78244..8e06f4a 100644
--- a/common/container/change-tracking/test.hxx
+++ b/common/container/change-tracking/test.hxx
@@ -4,33 +4,22 @@
#ifndef TEST_HXX
#define TEST_HXX
-#include <common/config.hxx> // HAVE_CXX11
-
#include <string>
#include <memory>
#include <vector>
-
-#ifdef HAVE_CXX11
-# include <utility> // std::move
-#endif
+#include <utility> // std::move
#include <odb/core.hxx>
#include <odb/vector.hxx>
-#ifdef HAVE_CXX11
#pragma db object pointer(std::unique_ptr)
-#else
-#pragma db object pointer(std::auto_ptr)
-#endif
struct object
{
object () {}
object (const std::string& id): id_ (id) {}
-#ifdef HAVE_CXX11
object (const object& x): id_ (x.id_), i (x.i), s (x.s) {}
object (object&& x): id_ (std::move (x.id_)), i (x.i), s (std::move (x.s)) {}
-#endif
#pragma db id
std::string id_;
@@ -40,7 +29,7 @@ struct object
odb::vector<std::string> s;
inline bool
- operator== (const object& o) {return id_ == o.id_ && i == o.i && s == o.s;}
+ operator== (const object& o) const {return id_ == o.id_ && i == o.i && s == o.s;}
};
// Test mixing "smart" and "dumb" container (specifically, erase(obj)).