Changeset 12784 for trunk


Ignore:
Timestamp:
01/30/12 16:57:14 (13 years ago)
Author:
tbretz
Message:
Should be std::function not boost::function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventImp.h

    r11517 r12784  
    2929
    3030    // Function handling
    31     EventImp &AssignFunction(const boost::function<int(const EventImp &)> &func) { fFunction = func; return *this; }
     31    EventImp &AssignFunction(const std::function<int(const EventImp &)> &func) { fFunction = func; return *this; }
    3232    bool HasFunc() const { return (bool)fFunction; }
    3333    int ExecFunc() const { return fFunction ? fFunction(*this) : -1; }
    3434
    3535    // Configuration helper
    36     EventImp &operator()(const boost::function<int(const EventImp &)> &func) { return AssignFunction(func); }
     36    EventImp &operator()(const std::function<int(const EventImp &)> &func) { return AssignFunction(func); }
    3737    EventImp &operator()(const std::string str) { SetDescription(str); return *this; }
    3838    EventImp &operator()(const char *str) { SetDescription(str); return *this; }
Note: See TracChangeset for help on using the changeset viewer.