2
0
mirror of https://github.com/boostorg/dll.git synced 2026-02-19 14:22:16 +00:00

load_self exemple name fix

This commit is contained in:
retf
2014-08-12 11:25:42 -03:00
parent 9d68c2ce71
commit d84906d84f

View File

@@ -24,8 +24,9 @@ int main(int argc, char* argv[]) {
boost::plugin::shared_library self;
self.load_self();
if(self.search_symbol("f"))
if(self.search_symbol("sumexe"))
{
std::cout << "Call function 'int sumexe(int x, int y)'" << std::endl;
boost::function<int(int, int)> sum = self.get<int(int, int)>("sumexe");
std::cout << "Computed Value: " << sum(2,2) << std::endl;
}