diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-11-02 12:18:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-11-02 12:18:42 +0200 |
commit | fd5ba96357002c0964453fea38ee6a813cf02826 (patch) | |
tree | fb90043fe8475fa48c62a6f70ea7a4af55a50bb2 | |
parent | 255473612bbf9e753fa83fd7ccfd6e498175f83a (diff) |
Rework query alias tag system
Now each object pointer or view-associated object with alias gets its
own unique tag.
-rw-r--r-- | odb/query.hxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/odb/query.hxx b/odb/query.hxx index d5d0a19..ffff7f7 100644 --- a/odb/query.hxx +++ b/odb/query.hxx @@ -12,8 +12,7 @@ namespace odb { - // Table alias for type T and alias tag Tag. The dummy third template - // argument is used to make the C++ compiler weed out duplicates. + // Table alias for type T and tag Tag. // // The alias_traits interface consists of two things: the table_name // static variable containing the name and, in case of a derived type @@ -22,16 +21,16 @@ namespace odb // we need straight tables instead of aliases. // // - template <typename T, database_id DB, typename Tag, bool dummy = true> + template <typename T, database_id DB, typename Tag> struct alias_traits; template <typename T, database_id DB> struct query_columns_base; - template <typename T, database_id DB, typename Alias> + template <typename T, database_id DB, typename A> struct query_columns; - template <typename T, database_id DB, typename Alias> + template <typename T, database_id DB, typename A> struct pointer_query_columns; // Object pointer syntax wrapper. |