boost::function compilation

Hi, 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 library path in the project settings but it just doesn't seem to be able to compile. The documentation specifies things about the preferred and portable syntax. Is there even some setting choose the desired syntax, becoz there are no hints or instructions that mention anything on it in the the documentation and I can't find anything in the source files as well. Thanks. Cheers, Terence

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
participants (2)
-
Douglas Paul Gregor
-
Terence Ou