Problem with boost::bind, boost::shared_ptr and std::find_if algorithm

All,
I have the following data sructure:
struct WeightedTimeHolder
{
double time;
double dt;
double weight;
double dailyVol;
double varDelta_t;
double cutToCutdailyVol;
double extraVar;
double varPlusEventVar;
double aggrVar;
double implVol;
int cut;
}
and typedef multimap

Hi Przemyslaw,
On Tue, Aug 3, 2010 at 7:34 AM,
All,
<snip code>
Since this looks really ugly I would like to ask you how this can be converto to find_if algorithm with a little help of boost::bind. I tried but could not succees.
It seemed necessary to add a nested bind call.
#include "boost/bind.hpp"
#include "boost/shared_ptr.hpp"
#include <map>
struct WTH
{
int cut;
};
int main()
{
int cut;
typedef std::multimap
participants (2)
-
Nathan Crookston
-
przemyslaw.sliwa@uk.bnpparibas.com