|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54066 - trunk/boost/filesystem
From: bdawes_at_[hidden]
Date: 2009-06-18 17:01:55
Author: bemandawes
Date: 2009-06-18 17:01:54 EDT (Thu, 18 Jun 2009)
New Revision: 54066
URL: http://svn.boost.org/trac/boost/changeset/54066
Log:
Filesystem: apply supplied patch to fix #3176
Text files modified:
trunk/boost/filesystem/path.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/filesystem/path.hpp
==============================================================================
--- trunk/boost/filesystem/path.hpp (original)
+++ trunk/boost/filesystem/path.hpp 2009-06-18 17:01:54 EDT (Thu, 18 Jun 2009)
@@ -939,7 +939,7 @@
String basic_path<String, Traits>::stem() const
{
string_type name = filename();
- typename string_type::size_type n = name.rfind('.');
+ typename string_type::size_type n = name.rfind(dot<path_type>::value);
return name.substr(0, n);
}
@@ -947,7 +947,7 @@
String basic_path<String, Traits>::extension() const
{
string_type name = filename();
- typename string_type::size_type n = name.rfind('.');
+ typename string_type::size_type n = name.rfind(dot<path_type>::value);
if (n != string_type::npos)
return name.substr(n);
else
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