From a87051bd8ee06166ba3878a92ba63ec4d1f1ff27 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 11 Jul 2012 14:48:47 +0000 Subject: Patch #32074: Fix compilation with boost 1.50 This patch switches from boost's filesystem v2 to v3. This should be completely smooth due to filesystem v3 is pretty old already. Patch by Sven-Hendrik Haase (aka svenstaro), thanks! --- intern/cycles/util/util_cache.cpp | 4 +--- intern/cycles/util/util_path.cpp | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'intern/cycles') diff --git a/intern/cycles/util/util_cache.cpp b/intern/cycles/util/util_cache.cpp index 44d784ba741..2924ed30b88 100644 --- a/intern/cycles/util/util_cache.cpp +++ b/intern/cycles/util/util_cache.cpp @@ -26,8 +26,6 @@ #include "util_path.h" #include "util_types.h" -#define BOOST_FILESYSTEM_VERSION 2 - #include #include @@ -117,7 +115,7 @@ void Cache::clear_except(const string& name, const set& except) boost::filesystem::directory_iterator it(dir), it_end; for(; it != it_end; it++) { - string filename = it->path().filename(); + string filename = it->path().filename().string(); if(boost::starts_with(filename, name)) if(except.find(filename) == except.end()) diff --git a/intern/cycles/util/util_path.cpp b/intern/cycles/util/util_path.cpp index 717aa34c426..53dbfe9a42c 100644 --- a/intern/cycles/util/util_path.cpp +++ b/intern/cycles/util/util_path.cpp @@ -26,8 +26,6 @@ OIIO_NAMESPACE_USING #include -#define BOOST_FILESYSTEM_VERSION 2 - #include #include @@ -60,7 +58,7 @@ string path_user_get(const string& sub) string path_filename(const string& path) { - return boost::filesystem::path(path).filename(); + return boost::filesystem::path(path).filename().string(); } string path_dirname(const string& path) -- cgit v1.2.3