Changeset 10537 for trunk/FACT++
- Timestamp:
- 05/03/11 18:25:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Configuration.cc
r10372 r10537 269 269 #include <fstream> 270 270 #include <iostream> 271 #include <iomanip> 271 272 272 273 #include <boost/bind.hpp> … … 275 276 #include <boost/program_options.hpp> 276 277 278 #define HAS_SQL 279 280 #ifdef HAS_SQL 277 281 #include <mysql++/mysql++.h> 282 #endif 278 283 279 284 using namespace std; … … 325 330 //! - Shell we allow options to be given more than once? 326 331 // 332 #ifdef HAS_SQL 327 333 po::basic_parsed_options<char> 328 334 Configuration::parse_database(const string &database, const po::options_description& desc, bool allow_unregistered) … … 432 438 return result; 433 439 } 440 #else 441 po::basic_parsed_options<char> 442 Configuration::parse_database(const string &, const po::options_description &desc, bool) 443 { 444 return po::parsed_options(&desc); 445 } 446 #endif 434 447 435 448 // -------------------------------------------------------------------------- … … 440 453 fNameMapper(bind1st(mem_fun(&Configuration::DefaultMapper), this)), 441 454 fPrintUsage(boost::bind(&Configuration::PrintUsage, this)) 442 443 455 { 444 456 po::options_description generic("Generic options");
Note:
See TracChangeset
for help on using the changeset viewer.