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

Compilation warning #14

Closed ImmortalDragonm closed 9 years ago

ImmortalDragonm commented 9 years ago

VC 2013 Then i compile any examles i get this warning: warning C4099: 'st_tree::tree<node_base<Tree,Node,ChildContainer>::tree_type::data_type,Tree::cs_model_type,Tree::allocator_type>' : type name first seen using 'struct' now seen using 'class'

many times

ImmortalDragonm commented 9 years ago

i think you must change friend class to friend struct

erikerlandson commented 9 years ago

@ImmortalDragonm I don't have VC, can you test this PR just to confirm it resolves your warnings?

ImmortalDragonm commented 9 years ago

yes. no warnings at all? after i changed. I can send you patch or you can change 13 class to stuct in st_tree_nodes.h

erikerlandson commented 9 years ago

@ImmortalDragonm I merged in the fix, thanks for the feedback!