Changeset 10765 for trunk


Ignore:
Timestamp:
05/20/11 13:28:04 (14 years ago)
Author:
tbretz
Message:
Made it compatible with older boost versions.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/scheduler.cc

    r10710 r10765  
    762762        ("no-dim,d",          po_switch(),    "Disable dim services")
    763763        ("console,c",         var<int>(),     "Use console (0=shell, 1=simple buffered, X=simple unbuffered)")
    764         ("schedule-database", var<string>()->required(),
    765                                               "Database link as in\n\t[user:[password]@][server][:port][/database]\nOverwrites options from the default configuration file.")
     764        ("schedule-database", var<string>()
     765#if BOOST_VERSION >= 104200
     766         ->required()
     767#endif
     768                                           ,  "Database link as in\n\t[user:[password]@][server][:port][/database]\nOverwrites options from the default configuration file.")
    766769        ("mintime",           var<int>(),     "minimum observation time")
    767770        ;
  • trunk/FACT++/src/triggerschedule.cc

    r10707 r10765  
    1313    config.add_options()
    1414        ("dns",               var<string>("localhost"),  "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)")
    15         ("schedule-database", var<string>()->required(), "Database name for scheduling preview")
     15        ("schedule-database", var<string>()
     16#if BOOST_VERSION >= 104200
     17         ->required()
     18#endif
     19                                                      , "Database name for scheduling preview")
    1620        ;
    1721
Note: See TracChangeset for help on using the changeset viewer.