1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 13:23:53 +00:00

workaround for older boost versions

This commit is contained in:
Marc Zinnschlag 2012-02-24 20:19:32 +01:00
parent 728e9cce5a
commit 68da94c8f0

View file

@ -35,6 +35,23 @@
#include "config.hpp" #include "config.hpp"
#include <boost/version.hpp>
/**
* Workaround for problems with whitespaces in paths in older versions of Boost library
*/
#if (BOOST_VERSION <= 104600)
namespace boost
{
template<>
inline boost::filesystem::path lexical_cast<boost::filesystem::path, std::string>(const std::string& arg)
{
return boost::filesystem::path(arg);
}
} /* namespace boost */
#endif /* (BOOST_VERSION <= 104600) */
using namespace std; using namespace std;
/** /**