Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2728 for code/trunk/src/core


Ignore:
Timestamp:
Mar 2, 2009, 1:47:42 PM (16 years ago)
Author:
rgrieder
Message:

Updated to the new tardis libraries. Seems to work fine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/ArgumentCompletionFunctions.cc

    r2710 r2728  
    3131#include <iostream>
    3232#include <map>
     33#include <boost/version.hpp>
    3334#include <boost/filesystem.hpp>
    3435
     
    3940#include "util/Convert.h"
    4041#include "util/String.h"
     42
     43// Boost 1.36 has some issues with deprecated functions that have been omitted
     44#if (BOOST_VERSION == 103600)
     45#  define BOOST_LEAF_FUNCTION filename
     46#else
     47#  define BOOST_LEAF_FUNCTION leaf
     48#endif
    4149
    4250namespace orxonox
     
    7886                {
    7987                    if (boost::filesystem::is_directory(*file))
    80                         dirlist.push_back(ArgumentCompletionListElement((*file).string() + CP_SLASH, getLowercase((*file).string()) + "/", (*file).leaf() + "/"));
     88                        dirlist.push_back(ArgumentCompletionListElement((*file).string() + CP_SLASH, getLowercase((*file).string()) + "/", (*file).BOOST_LEAF_FUNCTION() + "/"));
    8189                    else
    82                         filelist.push_back(ArgumentCompletionListElement((*file).string(), getLowercase((*file).string()), (*file).leaf()));
     90                        filelist.push_back(ArgumentCompletionListElement((*file).string(), getLowercase((*file).string()), (*file).BOOST_LEAF_FUNCTION()));
    8391                    ++file;
    8492                }
Note: See TracChangeset for help on using the changeset viewer.