28 Apr
2008
28 Apr
'08
9:41 p.m.
I could have sworn I saw an example using boost to do simple numeric bounds checking. For example (silly): enum number_range {A=0,B=1,C=2,D=3,E=4,F=5,G=6,H=7}; class check_number_range { public: check_number_range(number_range a_number) { // Can this check be boostified? <--- Question located here. if ((a_number) > -1) && (a_number) < 8)) { // do something } else { throw out_of_range; } } }; thanks much, graham
6043
Age (days ago)
6043
Last active (days ago)
0 comments
1 participants
participants (1)
-
Graham Reitz