Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-05-12 12:10:18


I just had to work around an ICE in a seemingly trivial use of
boost::function:

given:

typedef boost::function2<PyObject*, PyObject*, PyObject*> py_function;
PyObject* identity(PyObject* args_, PyObject*);

The expression:

    py_function(identity)

Was producing an ICE with vc6.5. To work around it, I actually had to use
the bind library:

    py_function(bind(identity,_1,_2))

Isn't this weird?

+---------------------------------------------------------------+
                  David Abrahams
      C++ Booster (http://www.boost.org) O__ ==
      Pythonista (http://www.python.org) c/ /'_ ==
  resume: http://users.rcn.com/abrahams/resume.html (*) \(*) ==
          email: david.abrahams_at_[hidden]
+---------------------------------------------------------------+


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk