Boost logo

Boost Users :

From: Douglas Paul Gregor (gregod_at_[hidden])
Date: 2003-10-13 21:03:58


On Wed, 15 Oct 2003, Terence Ou wrote:
> I'm currently trying to use boost::function with VC++ 7.0 and I get
> the compilation error stating that
> function is not a member of boost. I've already included the header
> <boost/function.hpp> as well as the

VC++ 7.0 only supports the "portable" syntax, and as such the
boost::function class template doesn't exist for it. You'll need to use,
e.g., boost::function2<void, int, int> instead of
boost::function<void (int, int)>. There is a table at the beginning of the
Function tutorial that gives the list of compilers known to support the
preferred syntax.

        Doug


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net