Changeset 2728 for code/trunk/src/core
- Timestamp:
- Mar 2, 2009, 1:47:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/ArgumentCompletionFunctions.cc
r2710 r2728 31 31 #include <iostream> 32 32 #include <map> 33 #include <boost/version.hpp> 33 34 #include <boost/filesystem.hpp> 34 35 … … 39 40 #include "util/Convert.h" 40 41 #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 41 49 42 50 namespace orxonox … … 78 86 { 79 87 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() + "/")); 81 89 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())); 83 91 ++file; 84 92 }
Note: See TracChangeset
for help on using the changeset viewer.