forked from teamnwah/openmw-tes3coop
Fix Boost path problem for Boost versions below 1.43
This commit is contained in:
parent
96c0b8760e
commit
1ed1c29db9
1 changed files with 17 additions and 0 deletions
|
@ -9,6 +9,23 @@
|
|||
#include "pluginsmodel.hpp"
|
||||
#include "pluginsview.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 ESM;
|
||||
using namespace std;
|
||||
|
||||
|
|
Loading…
Reference in a new issue