« first day (3899 days earlier)      last day (1035 days later) » 

10:25 AM
class Tree {
public:
int id;
int static count;
Tree():id(count++){}
~Tree() {}
};

I thought default constructor in this way can be used.! Am I wrong ?
 
 
3 hours later…
1:30 PM
@Gow. It can. What makes you think it doesn't work? You're probably just missing a definition for int Tree::count;
 
 
9 hours later…
10:14 PM
Hi folks, is it considered a bad idea if we append additional members in an enum when we develop and maintain evolving libraries? For example, in version 1 we have an enum with 3 members but in the future there is a need to append some members to the enum.
I ask this question because I am wondering why the opencv libraries did not use evolving enum but they use #define instead. See the following issue I posted.
As always, please kindly ping me if you answer my question above. thank you!
 

« first day (3899 days earlier)      last day (1035 days later) »