
1 Sep
2010
1 Sep
'10
1:57 p.m.
On 01/09/10 10:11, René Tschirley wrote:
Dear Boost experts,
I struggle to get Jeremy Pack's Boost.Extension going. I want to use the platform independent way to explicitly load shared libraries. Starting with the tutorial, it took me some time to find this out:
boost::extensions::shared_library lib("mylib.dll"); boost::function<void (int)> fun1(lib.get<void, int>("DoSomething"));
works, but
boost::function<void (void)> fun2(lib.get<void, void>("DoSomething"));
Try with boost::function<void (void)> fun2(lib.get<void>("DoSomething"));