Boost logo

Boost Users :

From: Christian Larsen (contact_at_[hidden])
Date: 2008-08-23 06:25:43


Olaf Peter skrev:
> the following code doesn't compile:
[SNIP]
> m_f.fn = bind( bar::write, this); // L20

You need to take the address of bar::write, so this should work:

           m_f.fn = bind( &bar::write, this);

Best regards,
Christian


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