25 Feb
2009
25 Feb
'09
5:07 a.m.
dhruva wrote:
I have my own data type, time stamp and value. I would like to get the min Sample with corresponding time stamp.
class time_val { public: time_t _time; double _value;
/* I have overloaded operators: <, >, ==, != */ /* Have provided copy constructor */ };
When I try: accumulator_set< time_val, features tag::min > acc;
I get a whole lot of compilation errors. Is there any way I can make a UDT as a sample?
That should just work. Can you provide a complete example? -- Eric Niebler BoostPro Computing http://www.boostpro.com