Re: [Boost-bugs] [Boost C++ Libraries] #4702: replace_extension truncates path

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4702: replace_extension truncates path
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-01 18:59:39


#4702: replace_extension truncates path
-----------------------------------+----------------------------------------
  Reporter: cheesy4poofs@… | Owner: bemandawes
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: filesystem
   Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords: replace_extension
-----------------------------------+----------------------------------------

Comment (by anonymous):

 Apparently, it didn't like the backslashes, let me try the examples again:

         boost::filesystem::path p("/database/test/filename");
         p.replace_extension(".db");
         std::cout << p.string() << std::endl;
         // OUTPUT - /database/test/filename.db

         p = "/database.1/test/filename";
         p.replace_extension(".db"); // bug?
         std::cout << p.string() << std::endl;
         // OUTPUT - /database.db

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4702#comment:1>
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:04 UTC