aboutsummaryrefslogtreecommitdiff
path: root/common/container/change-tracking/test.hxx
diff options
context:
space:
mode:
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)).