From 5adda85ed10d9196f4d68cc4b8fee12f6ba9cfec Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 9 Dec 2010 10:36:15 +0200 Subject: Add lazy pointer support Built-in support is provided for raw, auto, and tr1 shared/weak pointers. New test: common/lazy-ptr. --- odb/mysql/common.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odb/mysql/common.cxx') diff --git a/odb/mysql/common.cxx b/odb/mysql/common.cxx index 3cec95c..830407d 100644 --- a/odb/mysql/common.cxx +++ b/odb/mysql/common.cxx @@ -55,7 +55,7 @@ namespace mysql { sql_type const& st (db_type (m, key_prefix_)); - if (semantics::class_* c = object_pointer (m, key_prefix_)) + if (semantics::class_* c = object_pointer (t)) { member_info mi (m, id_member (*c).type (), var, fq_type_override_); mi.st = &st; @@ -490,7 +490,7 @@ namespace mysql { string name (public_name (m)); - if (semantics::class_* c = object_pointer (m)) + if (semantics::class_* c = object_pointer (m.type ())) { // We cannot just typedef the query_type from the referenced // object for two reasons: (1) it may not be defined yet and -- cgit v1.1