diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-12-09 10:36:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-12-09 10:36:15 +0200 |
commit | 5adda85ed10d9196f4d68cc4b8fee12f6ba9cfec (patch) | |
tree | 8a97d998dd8de5a4c2dbda8a171fabbf54af6c4e /odb/mysql/common.cxx | |
parent | 5789a4f7c5cee94df29e37fd1c2f7c1d9e883002 (diff) |
Add lazy pointer support
Built-in support is provided for raw, auto, and tr1 shared/weak pointers.
New test: common/lazy-ptr.
Diffstat (limited to 'odb/mysql/common.cxx')
-rw-r--r-- | odb/mysql/common.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 |