[Boost-bugs] [Boost C++ Libraries] #5529: Problem with boost::filesystem::path

Subject: [Boost-bugs] [Boost C++ Libraries] #5529: Problem with boost::filesystem::path
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-11 08:43:21


#5529: Problem with boost::filesystem::path
---------------------------------------------------+------------------------
 Reporter: Leo Carreon <lcarreon@…> | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: |
---------------------------------------------------+------------------------
 Hi,

 I upgraded my Boost libraries from version 1.45.0 to 1.46.1 and now the
 behavior of the following test program has changed:

   #include <iostream>
   #include <iomanip>
   #include <boost/filesystem.hpp>

   using std::cout;
   using std::endl;
   using boost::filesystem::path;

   int main()
   {
     path vPath("data/testfile");
     vPath.make_preferred();

     cout << "vPath = " << vPath.string() << endl;
   }

 When running the above on Windows using Boost version 1.45.0, I get the
 following result:

   vPath = data\testfile

 But now runnning the above on Windows using Boost version 1.46.1, I get
 the following result:

   vPath = data/testfile

 Was this behavior change intentional because the documentation states that
 the behavior should be as per the result using Boost 1.45.0.

 Regards,

 Leo

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5529>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC