From 0e595e5d7bcc25b18027f3bda5d4508d42dacb39 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 20 Jul 2010 11:06:08 +0200 Subject: Add failure case to tracer implementation Also adjust object traits API to work with the new low-level API in libodb. --- odb/header.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'odb/header.cxx') diff --git a/odb/header.cxx b/odb/header.cxx index 5d87991..5b302af 100644 --- a/odb/header.cxx +++ b/odb/header.cxx @@ -100,13 +100,13 @@ namespace // insert () // os << "static void" << endl - << "insert (database&, const object_type&);" + << "insert (database&, object_type&);" << endl; // update () // os << "static void" << endl - << "update (database&, const object_type&);" + << "update (database&, object_type&);" << endl; // erase () @@ -117,8 +117,12 @@ namespace // find () // - os << "static shared_ptr" << endl - << "find (database&, const id_type&);"; + os << "static pointer_type" << endl + << "find (database&, const id_type&);" + << endl; + + os << "static bool" << endl + << "find (database&, const id_type&, object_type&);"; os << "};"; } -- cgit v1.1