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; /**