Changeset 11946 for trunk


Ignore:
Timestamp:
09/02/11 09:38:23 (13 years ago)
Author:
tbretz
Message:
Added the possibility to set the dafault in po_bool
File:
1 edited

Legend:

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

    r11578 r11946  
    244244{ return po::bool_switch(); }
    245245
    246 inline po::typed_value<bool> *po_bool()
    247 { return po::value<bool>()->implicit_value(true)->default_value(false); }
     246inline po::typed_value<bool> *po_bool(bool def=false)
     247{ return po::value<bool>()->implicit_value(true)->default_value(def); }
    248248
    249249#endif
Note: See TracChangeset for help on using the changeset viewer.