Boost logo

Boost-Commit :

From: oryol_at_[hidden]
Date: 2008-07-25 20:04:17


Author: jeremypack
Date: 2008-07-25 20:04:17 EDT (Fri, 25 Jul 2008)
New Revision: 47823
URL: http://svn.boost.org/trac/boost/changeset/47823

Log:
Remove library name parameter from load_single_library (second version), and a macro for automatically placing a standard exported function signature, if desired.
Text files modified:
   sandbox/boost/extension/convenience.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/boost/extension/convenience.hpp
==============================================================================
--- sandbox/boost/extension/convenience.hpp (original)
+++ sandbox/boost/extension/convenience.hpp 2008-07-25 20:04:17 EDT (Fri, 25 Jul 2008)
@@ -54,14 +54,14 @@
 }
 
 inline bool load_single_library(type_map& current_type_map,
- const std::string& library_path,
- const std::string& external_function_name) {
+ const std::string& library_path) {
     shared_library lib(library_path);
     if (!lib.open()) {
       return false;
     }
     void (*func)(type_map&) =
- lib.shared_library::get<void, type_map&>(external_function_name);
+ lib.shared_library::get<void, type_map&>
+ ("boost_extension_exported_type_map_function");
     if (!func) {
       return false;
     }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk