Skip to content
Snippets Groups Projects
Commit ae9f5e38 authored by vahrenkamp's avatar vahrenkamp
Browse files

Boost version fix

git-svn-id: http://svn.code.sf.net/p/simox/code/trunk@305 042f3d55-54a8-47e9-b7fb-15903f145c44
parent 13ab5559
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
#include "rapidxml.hpp"
#include <boost/pointer_cast.hpp>
#include <boost/filesystem.hpp>
#include <boost/version.hpp>
namespace VirtualRobot {
......@@ -582,7 +583,11 @@ void BaseIO::makeRelativePath( const std::string &basePath, std::string &filenam
std::string res = diffpath.string();
if (found && origPath.extension()!="")
{
#if (BOOST_VERSION>105000)
std::string ext = origPath.extension().generic_string().c_str(); // should work with with V3 and V2
#else
std::string ext = origPath.extension().c_str(); // should work with with V3 and V2
#endif
res += ext;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment