9 Mar
2007
9 Mar
'07
8:49 p.m.
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
Christian Henning wrote:
bind( static_cast
( &foo ), ( ref( str ), a() )); The (x, y) expression returns y. In your case (ref(str), a()) is equivalent to just a().
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users