From dcb7bcd541f77b280e5733da9ec1eb24574e0d9e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 Mar 2011 09:10:09 +0200 Subject: Add default_ctor() to semantics::class_ Use it in the code generators instead of calling the GCC AST macro. --- odb/semantics/class.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'odb/semantics/class.cxx') diff --git a/odb/semantics/class.cxx b/odb/semantics/class.cxx index 49dbade..6d1621a 100644 --- a/odb/semantics/class.cxx +++ b/odb/semantics/class.cxx @@ -3,6 +3,8 @@ // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : GNU GPL v3; see accompanying LICENSE file +#include // TYPE_HAS_DEFAULT_CONSTRUCTOR + #include #include @@ -20,6 +22,12 @@ namespace semantics { } + bool class_:: + default_ctor () const + { + return TYPE_HAS_DEFAULT_CONSTRUCTOR (tree_node ()); + } + // type info // namespace -- cgit v1.1