
This code compiles using Intel ICC 10.1, but fails with "error: utility: No such file or directory in file included from /usr/local/ include/boost/tr1/functional.hpp" under gcc : #include <boost/tr1/functional.hpp> namespace mcs { class SPGR { public: SPGR(double TR,double TE,double alpha,double T10,double T20,double r1,double r2) { } ~SPGR() { } double Xi(double C) const { return 1.0; } void test() const; }; inline void SPGR::test() const { using namespace std::tr1::placeholders; std::tr1::function<double (double)> f(std::tr1::bind(&SPGR::Xi,this,_1)); } } // namespace mcs int main() { mcs::SPGR spgr(10,1,15,1000,100,4e-3,5e-3); return 0; } I don't think I'm doing anything blatantly stupid here...any ideas on what's going on? Matthias