Changeset 11517


Ignore:
Timestamp:
07/21/11 13:27:46 (13 years ago)
Author:
tbretz
Message:
Explicit conversion of function to bool needed for newer g++
File:
1 edited

Legend:

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

    r11481 r11517  
    3030    // Function handling
    3131    EventImp &AssignFunction(const boost::function<int(const EventImp &)> &func) { fFunction = func; return *this; }
    32     bool HasFunc() const { return fFunction; }
     32    bool HasFunc() const { return (bool)fFunction; }
    3333    int ExecFunc() const { return fFunction ? fFunction(*this) : -1; }
    3434
Note: See TracChangeset for help on using the changeset viewer.