summaryrefslogtreecommitdiff
path: root/odb/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-10 12:07:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-21 15:40:00 +0200
commitfa1fa57d5fe1cb901520f03e7f802a156aae1034 (patch)
treeb97d57e4a1262add1ff57f76bdbbf9b4b1495e0f /odb/context.hxx
parentb0f28bd39db1732db794c6ba1f02d244bce0641c (diff)
Move the rest of generators to new ctor-less context
Diffstat (limited to 'odb/context.hxx')
-rw-r--r--odb/context.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/odb/context.hxx b/odb/context.hxx
index 859a665..0de95c1 100644
--- a/odb/context.hxx
+++ b/odb/context.hxx
@@ -173,7 +173,7 @@ public:
static size_t
out_column_count (semantics::class_&);
- semantics::data_member&
+ static semantics::data_member&
id_member (semantics::class_&);
// Object pointer information.
@@ -321,11 +321,11 @@ private:
X
indirect_value (semantics::context const& c, string const& key)
{
- typedef X (*func) (context&);
+ typedef X (*func) ();
std::type_info const& ti (c.type_info (key));
if (ti == typeid (func))
- return c.get<func> (key) (*this);
+ return c.get<func> (key) ();
else
return c.get<X> (key);
}
@@ -457,8 +457,6 @@ has (Y& y)
//
struct namespace_: traversal::namespace_, context
{
- namespace_ (context& c) : context (c) {}
-
virtual void
traverse (type&);
};