A
Amadeus W.M.
I wan to do this:
#include <algorithm>
//
std::transform(Xj.begin(), Xj.end(), logXj.begin(), std::log);
//
where Xj and logXj are of type
class Foo
{
public:
typedef double * iterator;
typedef const double * const_iterator;
//
};
The compiler understandably gets confused by std::log, with the following
error:
fooMain.C:131: error: no matching function for call to ‘transform(double*,
double*, double*, <unresolved overloaded function type>)’
make: *** [main] Error 1
How do I specify that I want
double log(double) ?
Thanks!
#include <algorithm>
//
std::transform(Xj.begin(), Xj.end(), logXj.begin(), std::log);
//
where Xj and logXj are of type
class Foo
{
public:
typedef double * iterator;
typedef const double * const_iterator;
//
};
The compiler understandably gets confused by std::log, with the following
error:
fooMain.C:131: error: no matching function for call to ‘transform(double*,
double*, double*, <unresolved overloaded function type>)’
make: *** [main] Error 1
How do I specify that I want
double log(double) ?
Thanks!