Skip to content

Commit

Permalink
fix initialization ordering for gcc7 [-Werror=reorder] (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
westfly authored and erikerlandson committed May 14, 2019
1 parent dc4116b commit 942e17f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/st_tree_detail.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ struct max_maintainer {

protected:
typedef typename Alloc::template rebind<Unsigned>::other unsigned_allocator;
Unsigned _max;
vector<Unsigned, unsigned_allocator> _hist;
Unsigned _max;
};


Expand Down
2 changes: 1 addition & 1 deletion include/st_tree_nodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ struct node_base {
protected:
tree_type* _tree;
size_type _size;
max_maintainer<size_type, allocator_type> _depth;
node_type* _parent;
data_type _data;
cs_type _children;
max_maintainer<size_type, allocator_type> _depth;

bool _default_constructed() const {
return (NULL == _parent) && (NULL == _tree);
Expand Down

0 comments on commit 942e17f

Please sign in to comment.