$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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/