Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 12, 2011, 11:54:35 PM (13 years ago)
Author:
landauf
Message:

added support for boost 1.46 and adjusted code to work with the 3rd version of boost::filesystem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib/src/libraries/core/PathConfig.cc

    r8058 r8066  
    5959#if (BOOST_VERSION == 103600)
    6060#  define BOOST_LEAF_FUNCTION filename
     61#elif (BOOST_FILESYSTEM_VERSION < 3)
     62#  define BOOST_LEAF_FUNCTION leaf
    6163#else
    62 #  define BOOST_LEAF_FUNCTION leaf
     64#  define BOOST_LEAF_FUNCTION path().filename().string
    6365#endif
    6466
     
    282284                    // We've found a helper file
    283285                    const std::string& library = filename.substr(0, filename.size() - moduleextensionlength);
     286#if BOOST_FILESYSTEM_VERSION < 3
    284287                    modulePaths.push_back((modulePath_ / library).file_string());
     288#else
     289                    modulePaths.push_back((modulePath_ / library).string());
     290#endif
    285291                }
    286292            }
Note: See TracChangeset for help on using the changeset viewer.