Gavin Doughtie on 22 Aug 2003 19:19:42 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[ALACPP] boost::bind and global functions?


I was coding something with my boss today and wanted to show him the 31337ness of boost::bind. The callback signature was:

typedef void (*ProcessRowFunc)(FetchRow);

and my boost::bind was:

boost::bind(&Take::addFile, this, _1)

where "this" is an instance of "Take"

The compiler wouldn't match my boost::bind to the global function, which I thought it should be able to do. The bind worked fine when I called its 
op(), so I'm a bit fuddled.

"Gavin you stupid git, you need a boost::ref" or some other useful comment would be appreciated...

Gavin
_______________________________________________
alacpp mailing list
alacpp@xxxxxxxxxxx
http://lists.ellipsis.cx/mailman/listinfo/alacpp