Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2008-08-25 08:25:35


Author: bemandawes
Date: 2008-08-25 08:25:34 EDT (Mon, 25 Aug 2008)
New Revision: 48374
URL: http://svn.boost.org/trac/boost/changeset/48374

Log:
Provide deprecated functions has_branch_path and has_leaf, inadvertently omitted from 1.36.0
Text files modified:
   trunk/boost/filesystem/path.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/boost/filesystem/path.hpp
==============================================================================
--- trunk/boost/filesystem/path.hpp (original)
+++ trunk/boost/filesystem/path.hpp 2008-08-25 08:25:34 EDT (Mon, 25 Aug 2008)
@@ -229,6 +229,8 @@
 # ifndef BOOST_FILESYSTEM_NO_DEPRECATED
       string_type leaf() const { return filename(); }
       basic_path branch_path() const { return parent_path(); }
+ bool has_leaf() const { return !m_path.empty(); }
+ bool has_branch_path() const { return !parent_path().empty(); }
 # endif
 
       bool empty() const { return m_path.empty(); } // name consistent with std containers
@@ -237,7 +239,7 @@
       bool has_root_name() const;
       bool has_root_directory() const;
       bool has_relative_path() const { return !relative_path().empty(); }
- bool has_filename() const { return !m_path.empty(); }
+ bool has_filename() const { return !m_path.empty(); }
       bool has_parent_path() const { return !parent_path().empty(); }
 
       // iterators


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