From 68da94c8f0efb392696752f1c91f7cabb59d5474 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Fri, 24 Feb 2012 20:19:32 +0100 Subject: [PATCH] workaround for older boost versions --- apps/openmw/main.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/apps/openmw/main.cpp b/apps/openmw/main.cpp index ec1775ac8..b8f711b21 100644 --- a/apps/openmw/main.cpp +++ b/apps/openmw/main.cpp @@ -35,6 +35,23 @@ #include "config.hpp" +#include +/** + * 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(const std::string& arg) +{ + return boost::filesystem::path(arg); +} + +} /* namespace boost */ +#endif /* (BOOST_VERSION <= 104600) */ + using namespace std; /**