erikerlandson / st_tree

A fast and flexible c++ template class for tree data structures
https://github.com/erikerlandson/st_tree/wiki
Apache License 2.0
95 stars 20 forks source link

fix when initialized here [-Werror=reorder] #19

Closed westfly closed 5 years ago

westfly commented 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

erikerlandson commented 5 years ago

thanks @westfly! I will merge