I\'m trying to write a C++0x wrapper around dlopen()/dlsym() to dynamically load functions from shared objects:
class DynamicLoader { public: DynamicLoade
try this:
static_cast()
seems works in VC10
complete test:
#include void test() {} template std::function cast(void* f) { return static_cast(f); } int main() { std::function f = cast(&test); return 0; }