This compiles:
#include <boost/function.hpp>
#include <windows.h>
int main(void)
{
typedef void (WINAPI *GetNativeSystemInfoPtr)(LPSYSTEM_INFO);
HMODULE h = LoadLibrary (("Kernel32.dll"));
GetNativeSystemInfoPtr fp = (GetNativeSystemInfoPtr) GetProcAddress (h,"GetNativeSystemInfo");
SYSTEM_INFO info;
fp(&info);
boost::function< void (LPSYSTEM_INFO) > fb = (GetNativeSystemInfoPtr) GetProcAddress (h,"GetNativeSystemInfo");
SYSTEM_INFO info2;
fb(&info2);
return 0;
}
and the info content is the same as the info2 content, so it works.
, , boost:: function, (). , . , boost:: function , , , .