From 174f6e5d0f370ddfe28ace6acfb5362cfb102280 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 11 Oct 2009 09:32:17 +0200 Subject: Simplify to work around VC++ bugs --- cli/semantics/elements.hxx | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'cli/semantics/elements.hxx') diff --git a/cli/semantics/elements.hxx b/cli/semantics/elements.hxx index 504779a..ecca9ed 100644 --- a/cli/semantics/elements.hxx +++ b/cli/semantics/elements.hxx @@ -72,9 +72,6 @@ namespace semantics return dynamic_cast (this) != 0; } - protected: - friend class graph; - private: context_type context_; }; @@ -123,9 +120,7 @@ namespace semantics return dynamic_cast (this) != 0; } - protected: - friend class graph; - + public: node (path const& file, size_t line, size_t column) : file_ (file), line_ (line), column_ (column) { @@ -202,9 +197,7 @@ namespace semantics return *named_; } - protected: - friend class graph; - + public: names (string const& name) { names_.push_back (name); @@ -273,9 +266,7 @@ namespace semantics return *named_; } - protected: - friend class graph; - + public: nameable () : named_ (0) { @@ -350,9 +341,7 @@ namespace semantics names_iterator find (names&); - protected: - friend class graph; - + public: scope (path const& file, size_t line, size_t column) : node (file, line, column) { @@ -368,7 +357,6 @@ namespace semantics void remove_edge_left (names&); - protected: using nameable::add_edge_right; private: @@ -388,9 +376,7 @@ namespace semantics return name_; } - protected: - friend class graph; - + public: type (path const& file, size_t line, size_t column, string const& name) : node (file, line, column), name_ (name) { -- cgit v1.1