Skip to content

Commit

Permalink
Merge pull request #15 from erikerlandson/pr-14
Browse files Browse the repository at this point in the history
replace friend class with friend struct -- resolves #14
  • Loading branch information
erikerlandson committed Jan 22, 2015
2 parents 9a95409 + 6ed0aa3 commit 8ac9b81
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions include/st_tree_nodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ struct node_base {
bool operator<=(const node_base& rhs) const { return !(rhs < *this); }
bool operator>=(const node_base& rhs) const { return !(*this < rhs); }

friend class st_tree::tree<data_type, typename Tree::cs_model_type, allocator_type>;
friend class b1st_iterator<node_type, node_type, allocator_type>;
friend class b1st_iterator<node_type, const node_type, allocator_type>;
friend class d1st_post_iterator<node_type, node_type, allocator_type>;
friend class d1st_post_iterator<node_type, const node_type, allocator_type>;
friend class d1st_pre_iterator<node_type, node_type, allocator_type>;
friend class d1st_pre_iterator<node_type, const node_type, allocator_type>;
friend struct st_tree::tree<data_type, typename Tree::cs_model_type, allocator_type>;
friend struct b1st_iterator<node_type, node_type, allocator_type>;
friend struct b1st_iterator<node_type, const node_type, allocator_type>;
friend struct d1st_post_iterator<node_type, node_type, allocator_type>;
friend struct d1st_post_iterator<node_type, const node_type, allocator_type>;
friend struct d1st_pre_iterator<node_type, node_type, allocator_type>;
friend struct d1st_pre_iterator<node_type, const node_type, allocator_type>;

protected:
tree_type* _tree;
Expand Down Expand Up @@ -289,8 +289,8 @@ struct node_raw: public node_base<Tree, node_raw<Tree, Data>, vector<node_raw<Tr
typedef typename base_type::iterator iterator;
typedef typename base_type::const_iterator const_iterator;

friend class st_tree::tree<data_type, typename Tree::cs_model_type, allocator_type>;
friend class node_base<Tree, node_type, cs_type>;
friend struct st_tree::tree<data_type, typename Tree::cs_model_type, allocator_type>;
friend struct node_base<Tree, node_type, cs_type>;

node_raw() : base_type() {}
virtual ~node_raw() {}
Expand Down Expand Up @@ -490,8 +490,8 @@ struct node_ordered: public node_base<Tree, node_ordered<Tree, Data, Compare>, m
typedef typename base_type::iterator iterator;
typedef typename base_type::const_iterator const_iterator;

friend class st_tree::tree<data_type, typename Tree::cs_model_type, allocator_type>;
friend class node_base<Tree, node_type, cs_type>;
friend struct st_tree::tree<data_type, typename Tree::cs_model_type, allocator_type>;
friend struct node_base<Tree, node_type, cs_type>;

protected:
typedef typename base_type::cs_iterator cs_iterator;
Expand Down Expand Up @@ -753,8 +753,8 @@ struct node_keyed: public node_base<Tree, node_keyed<Tree, Data, Key, Compare>,
typedef typename base_type::iterator iterator;
typedef typename base_type::const_iterator const_iterator;

friend class st_tree::tree<data_type, typename Tree::cs_model_type, allocator_type>;
friend class node_base<Tree, node_type, cs_type>;
friend struct st_tree::tree<data_type, typename Tree::cs_model_type, allocator_type>;
friend struct node_base<Tree, node_type, cs_type>;

protected:
typedef typename base_type::cs_iterator cs_iterator;
Expand Down

0 comments on commit 8ac9b81

Please sign in to comment.