I'm having some problems with bind and wonder if someone might help.
The attached file compiles and runs fine when compiled with boost-1.30.2
(g++ 3.2 on a PC and g++ 3.3 on a Dec Alpha, both running linux).
However, compilation fails if I uncomment the overloaded 'node'
member function below.
struct FEM {
typedef std::vector<Node>::size_type size_type;
FEM(std::vector<Node> const & nodes) : nodes_(nodes) {}
size_type nnodes() const { return nodes_.size(); }
Node & node(size_type i) { return nodes_[i]; }
// Node const & node(size_type i) const { return nodes_[i]; }
private:
std::vector<Node> nodes_;
};
boost/boost-1.30.2/boost/function/function_template.hpp:117: could not convert
`f->boost::_bi::bind_t