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/fscctrl.cc

    r11479 r11481  
    1 #include <boost/bind.hpp>
     1#include <functional>
    22
    33#include "Dim.h"
     
    1111
    1212#include "tools.h"
    13 
    1413
    1514namespace ba    = boost::asio;
     
    370369    }
    371370
    372     boost::function<int(const EventImp &)> Wrapper(boost::function<void()> func)
    373     {
    374         return boost::bind(&StateMachineFSC::Wrap, this, func);
     371    function<int(const EventImp &)> Wrapper(function<void()> func)
     372    {
     373        return bind(&StateMachineFSC::Wrap, this, func);
    375374    }
    376375
     
    480479        // Verbosity commands
    481480        T::AddEvent("SET_VERBOSE", "B:1")
    482             (boost::bind(&StateMachineFSC::SetVerbosity, this, _1))
     481            (bind(&StateMachineFSC::SetVerbosity, this, placeholders::_1))
    483482            ("set verbosity state"
    484483             "|verbosity[bool]:disable or enable verbosity for received data (yes/no), except dynamic data");
    485484
    486485        T::AddEvent("DUMP_STREAM", "B:1")
    487             (boost::bind(&StateMachineFSC::SetDumpStream, this, _1))
     486            (bind(&StateMachineFSC::SetDumpStream, this, placeholders::_1))
    488487            (""
    489488             "");
     
    491490        // Conenction commands
    492491        AddEvent("DISCONNECT", kStateConnected)
    493             (boost::bind(&StateMachineFSC::Disconnect, this))
     492            (bind(&StateMachineFSC::Disconnect, this))
    494493            ("disconnect from ethernet");
    495494
    496495        AddEvent("RECONNECT", "O", kStateDisconnected, kStateConnected)
    497             (boost::bind(&StateMachineFSC::Reconnect, this, _1))
     496            (bind(&StateMachineFSC::Reconnect, this, placeholders::_1))
    498497            ("(Re)connect ethernet connection to FTM, a new address can be given"
    499498             "|[host][string]:new ethernet address in the form <host:port>");
Note: See TracChangeset for help on using the changeset viewer.