E
er
Hi All, could anyone make a suggestion to fix the code below? Thanks!
class A{
public:
/* constructor */
double value()const{/* implementation */};
};
typedef std::vector<boost::shared_ptr<A> > dataset_type;
dataset_type dataset;
/* fill A*/
dataset_type::const_iterator e =
upper_bound(
boost::make_transform_iterator(dataset.begin(),boost::mem_fn(&A::value))
,boost::make_transform_iterator(dataset.end(),boost::mem_fn(&A::value))
,1.0
);
Severity and Description Path Resource Location Creation Time Id
/usr/include/c++/4.1.3/bits/stl_algo.h instantiated from
'_ForwardIterator std::upper_bound(_ForwardIterator, _ForwardIterator,
const _Tp&) [with _ForwardIterator =
boost::transform_iterator<boost::_mfi::cmf0<double, A>,
__gnu_cxx::__normal_iterator<boost::shared_ptr<A>*,
Severity and Description Path Resource Location Creation Time Id
/usr/local/boost_1_34_1/boost/iterator/transform_iterator.hpp error:
no matching function for call to 'boost::_mfi::cmf0<double,
A>::cmf0()' Survival line 100 1200190279170 231941
Severity and Description Path Resource Location Creation Time Id
error: conversion from
'boost::transform_iterator<boost::_mfi::cmf0<double, A>,
__gnu_cxx::__normal_iterator<boost::shared_ptr<A>*,
'__gnu_cxx::__normal_iterator<const boost::shared_ptr<A>*,
92 1200190279169 231939
class A{
public:
/* constructor */
double value()const{/* implementation */};
};
typedef std::vector<boost::shared_ptr<A> > dataset_type;
dataset_type dataset;
/* fill A*/
dataset_type::const_iterator e =
upper_bound(
boost::make_transform_iterator(dataset.begin(),boost::mem_fn(&A::value))
,boost::make_transform_iterator(dataset.end(),boost::mem_fn(&A::value))
,1.0
);
Severity and Description Path Resource Location Creation Time Id
/usr/include/c++/4.1.3/bits/stl_algo.h instantiated from
'_ForwardIterator std::upper_bound(_ForwardIterator, _ForwardIterator,
const _Tp&) [with _ForwardIterator =
boost::transform_iterator<boost::_mfi::cmf0<double, A>,
__gnu_cxx::__normal_iterator<boost::shared_ptr<A>*,
Survival line 2886 1200190279169 231940, boost::use_default, boost::use_default>, _Tp = double]'
Severity and Description Path Resource Location Creation Time Id
/usr/local/boost_1_34_1/boost/iterator/transform_iterator.hpp error:
no matching function for call to 'boost::_mfi::cmf0<double,
A>::cmf0()' Survival line 100 1200190279170 231941
Severity and Description Path Resource Location Creation Time Id
error: conversion from
'boost::transform_iterator<boost::_mfi::cmf0<double, A>,
__gnu_cxx::__normal_iterator<boost::shared_ptr<A>*,
'__gnu_cxx::__normal_iterator<const boost::shared_ptr<A>*,
92 1200190279169 231939