Ignore:
Timestamp:
07/20/11 08:03:38 (13 years ago)
Author:
tbretz
Message:
Replaced boost::thread by std::thread and boost::bind by std::bind from the C++0x standard
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Configuration.cc

    r11479 r11481  
    332332#include <iomanip>
    333333
    334 #include <boost/bind.hpp>
    335334#include <boost/regex.hpp>
    336335#include <boost/filesystem.hpp>
     
    512511Configuration::Configuration(const string &prgname) : fName(UnLibToolize(prgname)),
    513512fNameMapper(bind1st(mem_fun(&Configuration::DefaultMapper), this)),
    514 fPrintUsage(boost::bind(&Configuration::PrintUsage, this))
     513fPrintUsage(bind(&Configuration::PrintUsage, this))
    515514{
    516515    po::options_description generic("Generic options");
     
    877876//!
    878877//
    879 void Configuration::SetNameMapper(const boost::function<string(string)> &func)
     878void Configuration::SetNameMapper(const function<string(string)> &func)
    880879{
    881880    fNameMapper = func;
     
    887886}
    888887
    889 void Configuration::SetPrintUsage(const boost::function<void(void)> &func)
     888void Configuration::SetPrintUsage(const function<void(void)> &func)
    890889{
    891890    fPrintUsage = func;
     
    894893void Configuration::SetPrintUsage()
    895894{
    896     fPrintUsage = boost::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
     898void Configuration::SetPrintVersion(const function<void(const string&)> &func)
    900899{
    901900    fPrintVersion = func;
     
    904903void Configuration::SetPrintVersion()
    905904{
    906     fPrintVersion = boost::function<void(const string&)>();
     905    fPrintVersion = function<void(const string&)>();
    907906}
    908907
     
    13101309#endif
    13111310
    1312     if (!fPrintVersion.empty())
     1311    if (fPrintVersion)
    13131312    {
    13141313        fPrintVersion(fName);
Note: See TracChangeset for help on using the changeset viewer.