Changeset 12780 for trunk/FACT++/src


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

Legend:

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

    r11040 r12780  
    1010#include <iostream>
    1111
     12#include <boost/version.hpp>
    1213#include <boost/filesystem.hpp>
    1314
     
    4546void FACT::PrintVersion(const char *name)
    4647{
     48#if BOOST_VERSION < 104700
    4749    const std::string n = boost::filesystem::path(name).filename();
     50#else
     51    const std::string n = boost::filesystem::path(name).filename().string();
     52#endif
    4853
    4954    std::cout <<
Note: See TracChangeset for help on using the changeset viewer.