Closed westfly closed 5 years ago
when compiler in GCC7, st_tree/include/st_tree_detail.h:113:42: error: 'st_tree::detail::max_maintainer<long unsigned int, std::allocator<const char> >::_hist' will be initialized after [-Werror=reorder] vector<Unsigned, unsigned_allocator> _hist; ^~~~~ st_tree/include/st_tree_detail.h:112:14: error: 'long unsigned int st_tree::detail::max_maintainer<long unsigned int, std::allocator<const char> >::_max' [-Werror=reorder] Unsigned _max; ^~~~ util/container/st_tree/include/st_tree_detail.h:58:5: error: when initialized here [-Werror=reorder]
ajust order
thanks @westfly! I will merge
when compiler in GCC7, st_tree/include/st_tree_detail.h:113:42: error: 'st_tree::detail::max_maintainer<long unsigned int, std::allocator<const char> >::_hist' will be initialized after [-Werror=reorder] vector<Unsigned, unsigned_allocator> _hist; ^~~~~ st_tree/include/st_tree_detail.h:112:14: error: 'long unsigned int st_tree::detail::max_maintainer<long unsigned int, std::allocator<const char> >::_max' [-Werror=reorder] Unsigned _max; ^~~~ util/container/st_tree/include/st_tree_detail.h:58:5: error: when initialized here [-Werror=reorder]
ajust order