summaryrefslogtreecommitdiff
path: root/odb/semantics/class.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-03-25 13:47:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-03-25 13:47:43 +0200
commit01f77f6d38283b4efbe2b55fc9c7c837fd6498dc (patch)
tree12059fa0c514a3f2b9da2a9419593e3596cc6f5d /odb/semantics/class.hxx
parentad637abaa62a26461b276769c35dd1b67036b54b (diff)
Add support for union, enum, class/union template
Diffstat (limited to 'odb/semantics/class.hxx')
-rw-r--r--odb/semantics/class.hxx20
1 files changed, 6 insertions, 14 deletions
diff --git a/odb/semantics/class.hxx b/odb/semantics/class.hxx
index d4a0900..bbe4687 100644
--- a/odb/semantics/class.hxx
+++ b/odb/semantics/class.hxx
@@ -13,19 +13,6 @@ namespace semantics
{
class class_;
- //
- //
- class data_member: public nameable, public instance
- {
- public:
- data_member (path const& file, size_t line, size_t column)
- : node (file, line, column)
- {
- }
- };
-
- //
- //
class inherits: public edge
{
public:
@@ -83,7 +70,7 @@ namespace semantics
//
//
- class class_: public type, public scope
+ class class_: public virtual type, public scope
{
private:
typedef std::vector<inherits*> inherits_list;
@@ -127,6 +114,11 @@ namespace semantics
//
using nameable::scope;
+ protected:
+ class_ ()
+ {
+ }
+
private:
inherits_list inherits_;
};