Changeset 11481 for trunk/FACT++/src/Configuration.cc
- Timestamp:
- 07/20/11 08:03:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Configuration.cc
r11479 r11481 332 332 #include <iomanip> 333 333 334 #include <boost/bind.hpp>335 334 #include <boost/regex.hpp> 336 335 #include <boost/filesystem.hpp> … … 512 511 Configuration::Configuration(const string &prgname) : fName(UnLibToolize(prgname)), 513 512 fNameMapper(bind1st(mem_fun(&Configuration::DefaultMapper), this)), 514 fPrintUsage(b oost::bind(&Configuration::PrintUsage, this))513 fPrintUsage(bind(&Configuration::PrintUsage, this)) 515 514 { 516 515 po::options_description generic("Generic options"); … … 877 876 //! 878 877 // 879 void Configuration::SetNameMapper(const boost::function<string(string)> &func)878 void Configuration::SetNameMapper(const function<string(string)> &func) 880 879 { 881 880 fNameMapper = func; … … 887 886 } 888 887 889 void Configuration::SetPrintUsage(const boost::function<void(void)> &func)888 void Configuration::SetPrintUsage(const function<void(void)> &func) 890 889 { 891 890 fPrintUsage = func; … … 894 893 void Configuration::SetPrintUsage() 895 894 { 896 fPrintUsage = b oost::bind(&Configuration::PrintUsage, this);897 } 898 899 void Configuration::SetPrintVersion(const boost::function<void(const string&)> &func)895 fPrintUsage = bind(&Configuration::PrintUsage, this); 896 } 897 898 void Configuration::SetPrintVersion(const function<void(const string&)> &func) 900 899 { 901 900 fPrintVersion = func; … … 904 903 void Configuration::SetPrintVersion() 905 904 { 906 fPrintVersion = boost::function<void(const string&)>();905 fPrintVersion = function<void(const string&)>(); 907 906 } 908 907 … … 1310 1309 #endif 1311 1310 1312 if ( !fPrintVersion.empty())1311 if (fPrintVersion) 1313 1312 { 1314 1313 fPrintVersion(fName);
Note:
See TracChangeset
for help on using the changeset viewer.