
14 Oct
2003
14 Oct
'03
2:03 a.m.
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