9 Mar
2007
9 Mar
'07
9:08 p.m.
Thanks Peter, yes it works for me. Thanks
On 3/9/07, Peter Dimov
Christian Henning wrote:
Thanks Peter, it needs to be:
using namespace std; using namespace boost;
struct a {}; struct b {};
void foo( string& s, a ) {} void foo( string& s, b ) {}
void two( int, int ) {}
int _tmain(int argc, _TCHAR* argv[]) { string str( "Hello" ); bind( static_cast
( &foo ), _1, _2)( ref( str ) , a() ); return 0; }
Are you still having problems with it? This works for me with the latest CVS; you may need to define an object of type 'a' since earlier versions of bind didn't accept rvalues such as a().
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users