From 807d6098c6bb26fbd09ea9bdca6d9f34ff4bd65d Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Thu, 23 Feb 2006 21:30:33 +0000 Subject: [PATCH] op= fix from Mark Bartosik [SVN r33095] --- include/boost/filesystem/path.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/filesystem/path.hpp b/include/boost/filesystem/path.hpp index 3da2581..c26a6b2 100644 --- a/include/boost/filesystem/path.hpp +++ b/include/boost/filesystem/path.hpp @@ -249,8 +249,10 @@ namespace boost ~basic_path() {} // assignments - basic_path & operator=( const string_type & s ) { m_path=""; operator/=( s ); return *this; } - basic_path & operator=( const value_type * s ) { m_path=""; operator/=( s ); return *this; } + basic_path & operator=( const string_type & s ) + { m_path.clear(); operator/=( s ); return *this; } + basic_path & operator=( const value_type * s ) + { m_path.clear(); operator/=( s ); return *this; } # ifndef BOOST_NO_MEMBER_TEMPLATES template basic_path & assign( InputIterator first, InputIterator last )