From 1ed1c29db9a62fc5765787a5d7dfd3ce6c406885 Mon Sep 17 00:00:00 2001 From: Pieter van der Kloet Date: Mon, 12 Mar 2012 14:42:24 +0100 Subject: [PATCH] Fix Boost path problem for Boost versions below 1.43 --- apps/launcher/datafilespage.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/apps/launcher/datafilespage.cpp b/apps/launcher/datafilespage.cpp index c954468080..054cbf1414 100644 --- a/apps/launcher/datafilespage.cpp +++ b/apps/launcher/datafilespage.cpp @@ -9,6 +9,23 @@ #include "pluginsmodel.hpp" #include "pluginsview.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 ESM; using namespace std;