Boost logo

Boost :

From: Robert Jones (robertgbjones_at_[hidden])
Date: 2008-07-16 12:23:37


Is it possible to bind to pure virtual methods? Like this

struct S
{
  void methodOfS( ) = 0;
};

void f( S & s )
{
  using namespace boost :: lambda;
  bind( & S :: methodOfS, _1 )( s );
}

My compiler seems to be complaining that s is abstract, which is
surely not a real limitation!

Thanks, Rob.


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