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/EventImp.h

    r11246 r11481  
    55#include <vector>
    66
    7 #include <boost/function.hpp>
    8 //#include <boost/bind/arg.hpp>
     7#include <functional>
    98
    109#include "Time.h"
     
    1615
    1716    /// http://www.boost.org/doc/libs/1_45_0/libs/bind/bind.html
    18     boost::function<int(const EventImp &)> fFunction;
     17    std::function<int(const EventImp &)> fFunction;
    1918
    2019public:
     
    3130    // Function handling
    3231    EventImp &AssignFunction(const boost::function<int(const EventImp &)> &func) { fFunction = func; return *this; }
    33     bool HasFunc() const { return !fFunction.empty(); }
    34     int ExecFunc() const { return HasFunc() ? fFunction(*this) : -1; }
     32    bool HasFunc() const { return fFunction; }
     33    int ExecFunc() const { return fFunction ? fFunction(*this) : -1; }
    3534
    3635    // Configuration helper
Note: See TracChangeset for help on using the changeset viewer.