Boost logo

Boost Users :

Subject: Re: [Boost-users] [accumulators] Strange behavior while extracting min using UDT
From: dhruva (dhruva_at_[hidden])
Date: 2009-02-25 05:19:43


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/


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net