|
Boost-Commit : |
From: bdawes_at_[hidden]
Date: 2008-08-18 09:23:11
Author: bemandawes
Date: 2008-08-18 09:23:10 EDT (Mon, 18 Aug 2008)
New Revision: 48192
URL: http://svn.boost.org/trac/boost/changeset/48192
Log:
Restore deprecated basic_directory_entry names inadvertently removed
Text files modified:
trunk/boost/filesystem/operations.hpp | 22 ++++++++++++++++------
1 files changed, 16 insertions(+), 6 deletions(-)
Modified: trunk/boost/filesystem/operations.hpp
==============================================================================
--- trunk/boost/filesystem/operations.hpp (original)
+++ trunk/boost/filesystem/operations.hpp 2008-08-18 09:23:10 EDT (Mon, 18 Aug 2008)
@@ -1020,12 +1020,18 @@
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; }
file_status status() const;
@@ -1042,6 +1048,10 @@
{
return path().filename();
}
+ typename Path::string_type leaf() const
+ {
+ return path().filename();
+ }
typename Path::string_type string() const
{
return path().string();
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