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 )