Boost logo

Boost Users :

Subject: [Boost-users] [Bind] bind to member functions
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2009-01-26 12:01:51


Hello,

this works fine,

struct A {
  template< typename X >
  void f( bool ) {
    bind(&A::f<X>, this, _1)( true );
  }
};

whereas

template< typename Z >
struct A {
  template< typename X >
  void f( bool ) {
    bind(&A<Z>::f<X>, this, _1)( true );
  }
};

gives me trouble in the at the line of bind form of "expected
primary-expression before ‘>’ token". I've tried numerous typedefs, but
that didn't do the trick.

Many thanks in advance for help on this,

Rutger


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