aboutsummaryrefslogtreecommitdiff
path: root/common/const/test.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-11-28 17:52:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-11-28 17:52:25 +0200
commit0b4c59824e3b2b0411dd33835c67f6cd36d60a91 (patch)
tree3d1740029ae6a4fc388500787413cac5af6d4abb /common/const/test.hxx
parent3b27ca96f2f4c2b76f65675a988482e19220fa66 (diff)
Simplify tests by using literal names
Diffstat (limited to 'common/const/test.hxx')
-rw-r--r--common/const/test.hxx17
1 files changed, 4 insertions, 13 deletions
diff --git a/common/const/test.hxx b/common/const/test.hxx
index 7e8a718..0164880 100644
--- a/common/const/test.hxx
+++ b/common/const/test.hxx
@@ -9,16 +9,7 @@
#include <memory>
#include <odb/core.hxx>
-struct obj1;
-struct obj2;
-
-typedef obj1* obj1_ptr;
-typedef const obj1* obj1_cptr;
-
-typedef std::auto_ptr<obj2> obj2_ptr;
-typedef std::auto_ptr<const obj2> obj2_cptr;
-
-#pragma db object pointer (obj1_ptr)
+#pragma db object pointer (obj1*)
struct obj1
{
obj1 () {}
@@ -31,7 +22,7 @@ struct obj1
void cf () const {}
};
-#pragma db object pointer (obj2_ptr)
+#pragma db object pointer (std::auto_ptr<obj2>)
struct obj2
{
obj2 () {}
@@ -54,8 +45,8 @@ struct aggr
#pragma db id
int id;
- obj1_cptr o1;
- obj2_cptr o2;
+ const obj1* o1;
+ std::auto_ptr<const obj2> o2;
};
#endif // TEST_HXX