Changeset 12787 for trunk


Ignore:
Timestamp:
01/30/12 17:01:17 (13 years ago)
Author:
tbretz
Message:
Icreased compatibility with different boost versions.
File:
1 edited

Legend:

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

    r12533 r12787  
    11551155    const po::parsed_options parsed_database =
    11561156        fDatabase.empty() ? po::parsed_options(&opt_database) :
     1157#if BOOST_VERSION < 104700
    11571158        parse_database(path.filename(), fDatabase, opt_database, !checkdb);
    1158 
     1159#else
     1160        parse_database(path.filename().string(), fDatabase, opt_database, !checkdb);
     1161#endif
    11591162    // ------------------------ (11) -------------------------
    11601163
     
    13291332
    13301333    string pname = path.parent_path().string();
     1334#if BOOST_VERSION < 104700
    13311335    string fname = path.filename();
     1336#else
     1337    string fname = path.filename().string();
     1338#endif
    13321339
    13331340    // If the filename starts with "lt-" remove it from the name
     
    14191426    }
    14201427
     1428#if BOOST_VERSION < 104700
    14211429    const std::string n = boost::filesystem::path(fName).filename();
     1430#else
     1431    const std::string n = boost::filesystem::path(fName).filename().string();
     1432#endif
    14221433
    14231434    const string name = PACKAGE_STRING;
Note: See TracChangeset for help on using the changeset viewer.