diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-10 09:10:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-21 15:39:59 +0200 |
commit | dcb7bcd541f77b280e5733da9ec1eb24574e0d9e (patch) | |
tree | e39b99a1dfa9db4fbbac02462923523e3de331a9 /odb/relational/source.hxx | |
parent | 7ae497743c7b042904fe1f6b4153ab3f4763ff2b (diff) |
Add default_ctor() to semantics::class_
Use it in the code generators instead of calling the GCC AST macro.
Diffstat (limited to 'odb/relational/source.hxx')
-rw-r--r-- | odb/relational/source.hxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/odb/relational/source.hxx b/odb/relational/source.hxx index 6f30007..37dfa27 100644 --- a/odb/relational/source.hxx +++ b/odb/relational/source.hxx @@ -6,8 +6,6 @@ #ifndef ODB_RELATIONAL_SOURCE_HXX #define ODB_RELATIONAL_SOURCE_HXX -#include <odb/gcc.hxx> // @@ ?? - #include <map> #include <set> #include <vector> @@ -1682,7 +1680,6 @@ namespace relational string traits ("access::object_traits< " + type + " >"); bool grow (context::grow (c)); - bool def_ctor (TYPE_HAS_DEFAULT_CONSTRUCTOR (c.tree_node ())); semantics::data_member& id (id_member (c)); bool auto_id (id.count ("auto")); @@ -2066,7 +2063,7 @@ namespace relational // find () // - if (def_ctor) + if (c.default_ctor ()) { os << traits << "::pointer_type" << endl << traits << "::" << endl |