From 942e17f2e7f11756db0ebe99afe2527dfd72b363 Mon Sep 17 00:00:00 2001 From: Rayan Date: Wed, 15 May 2019 00:12:19 +0800 Subject: [PATCH] fix initialization ordering for gcc7 [-Werror=reorder] (#19) --- include/st_tree_detail.h | 2 +- include/st_tree_nodes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/st_tree_detail.h b/include/st_tree_detail.h index ed2d1f2..391fe44 100644 --- a/include/st_tree_detail.h +++ b/include/st_tree_detail.h @@ -109,8 +109,8 @@ struct max_maintainer { protected: typedef typename Alloc::template rebind::other unsigned_allocator; - Unsigned _max; vector _hist; + Unsigned _max; }; diff --git a/include/st_tree_nodes.h b/include/st_tree_nodes.h index d8c4256..d97b948 100644 --- a/include/st_tree_nodes.h +++ b/include/st_tree_nodes.h @@ -177,10 +177,10 @@ struct node_base { protected: tree_type* _tree; size_type _size; - max_maintainer _depth; node_type* _parent; data_type _data; cs_type _children; + max_maintainer _depth; bool _default_constructed() const { return (NULL == _parent) && (NULL == _tree);