Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72402 - trunk/boost/iostreams/detail
From: dnljms_at_[hidden]
Date: 2011-06-05 08:00:58


Author: danieljames
Date: 2011-06-05 08:00:57 EDT (Sun, 05 Jun 2011)
New Revision: 72402
URL: http://svn.boost.org/trac/boost/changeset/72402

Log:
Iostreams: Disable assign from filesystem2 path on Visual C++ 7.1.

It wouldn't be that hard to work around, but it doesn't seem worth the
effort.
Text files modified:
   trunk/boost/iostreams/detail/path.hpp | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: trunk/boost/iostreams/detail/path.hpp
==============================================================================
--- trunk/boost/iostreams/detail/path.hpp (original)
+++ trunk/boost/iostreams/detail/path.hpp 2011-06-05 08:00:57 EDT (Sun, 05 Jun 2011)
@@ -98,8 +98,12 @@
         return *this;
     }
 
+#if !BOOST_WORKAROUND(BOOST_MSVC, < 1400)
     // Assignment operator taking a boost::filesystem2::path or
     // boost::filesystem2::wpath
+ // (not on Visual C++ 7.1, as it seems to have problems with
+ // SFINAE functions with the same parameters, doesn't seem
+ // worth working around).
     template<typename Path>
     typename sfinae<typename Path::external_string_type, path&>::type
             operator=(const Path& p)
@@ -107,6 +111,7 @@
         init(p.external_file_string());
         return *this;
     }
+#endif
 
     // Assignment operator taking a boost::filesystem3::path
     template<typename Path>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk