diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-02-17 10:08:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-02-22 12:29:43 +0200 |
commit | 3a1eed21d4d5d0e7f6a9f400420fdc28d7be9b61 (patch) | |
tree | 97ba7338fb804c264c9eaaaa41085b08f6483c68 /odb/pragma.cxx | |
parent | 3f73cc933b64d7d9a88325d33a3c33a0e28720c6 (diff) |
Add support for composite object ids
New pragma id_type (member). New test: common/composite-id. The composite
example has also been updated.
Diffstat (limited to 'odb/pragma.cxx')
-rw-r--r-- | odb/pragma.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/odb/pragma.cxx b/odb/pragma.cxx index 5149bee..6c92f0f 100644 --- a/odb/pragma.cxx +++ b/odb/pragma.cxx @@ -493,18 +493,8 @@ check_spec_decl_type (tree d, return false; } } - else if (p == "id_type") - { - // Id type can only be used for types. - // - if (!TYPE_P (d)) - { - error (l) << "name '" << name << "' in db pragma " << p << " does " - << "not refer to a type" << endl; - return false; - } - } else if (p == "type" || + p == "id_type" || p == "value_type" || p == "index_type" || p == "key_type") @@ -1841,6 +1831,7 @@ handle_pragma_qualifier (cpp_reader* reader, string const& p) p == "key_options" || p == "id_options" || p == "type" || + p == "id_type" || p == "value_type" || p == "index_type" || p == "key_type" || |