Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37816199
en ru br
ALT Linux repos
S:1.83.0-alt2
D:1.37.0-alt2
5.0: 1.36.0-alt4
4.1: 1.34.1-alt1
4.0: 1.33.1-alt4
3.0: 1.32.0-alt2

Group :: Development/C++
RPM: boost

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: boost-1.36.0-svn-r48192-filesystem-fixes.patch
Download


Index: /trunk/boost/filesystem/operations.hpp
===================================================================
--- /trunk/boost/filesystem/operations.hpp (revision 47181)
+++ /trunk/boost/filesystem/operations.hpp (revision 48192)
@@ -1021,10 +1021,16 @@
       void replace_filename( const string_type & s,
         file_status st, file_status symlink_st )
-     {
-       m_path.remove_filename();
-       m_path /= s;
-       m_status = st;
-       m_symlink_status = symlink_st;
-     }
+      {
+        m_path.remove_filename();
+        m_path /= s;
+        m_status = st;
+        m_symlink_status = symlink_st;
+      }
+
+#   ifndef BOOST_FILESYSTEM_NO_DEPRECATED
+      void replace_leaf( const string_type & s,
+        file_status st, file_status symlink_st )
+          { replace_filename( s, st, symlink_st ); }
+#   endif
 
       const Path &  path() const { return m_path; }
@@ -1040,4 +1046,8 @@
       // deprecated functions preserve common use cases in legacy code
       typename Path::string_type filename() const
+      {
+        return path().filename();
+      }
+      typename Path::string_type leaf() const
       {
         return path().filename();
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin