|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-03-11 09:42:58
This surprised me; should it have?
#include <boost/bind.hpp>
#include <boost/mem_fn.hpp>
struct X
{
int y;
};
int main()
{
boost::mem_fn(&X::y); // OK
boost::bind(&X::y); // Error!
}
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk