Re: [Boost-users] [accumulators] Strange behavior while extracting min using UDT

25 Feb
2009
25 Feb
'09
10:19 a.m.
Hello, I found the solution. I had to specialize the min and max as follows for my UDT. It now works as it always did :) acc_sample std::numeric_limits<acc_sample>::min() { return (acc_sample(1000, std::numeric_limits<double>::min())); } acc_sample std::numeric_limits<acc_sample>::max() { return (acc_sample(1000, std::numeric_limits<double>::max())); } -dhruva From Chandigarh to Chennai - find friends all over India. Go to http://in.promos.yahoo.com/groups/citygroups/
5945
Age (days ago)
5945
Last active (days ago)
0 comments
1 participants
participants (1)
-
dhruva