
OK, thanks to Sebastian and Nat, plus some Google group searches, I found a
solution, which is, in a nutshell - #define BOOST_BIND_ENABLE_STDCALL:
Here is a sample:
#include
For example, if I want to use the DeleteFile WinAPI call, I want to write something like:
std::vectorstd::wstring v; ... for_each(v.begin(), v.end(), ::DeleteFile(_1));
But the above won't work as I need to pass the 'C' string to ::DeleteFile.
So, I really want to be able to do something like this:
for_each(v.begin(), v.end(), ::DeleteFile(_1.c_str()));