boost::filesystem::rename() documentation incorrect
25 Sep
2009
25 Sep
'09
7:59 a.m.
Hi all, this documentation is incorrect: Otherwise, if to_p resolves to an existing file, it is removed. This is from Boost 1.40.0, and yet the code for rename() calls rename_api() which then does the following: if ( fs::exists( status_api( to, dummy ) ) ) return error_code( EEXIST, system_category ); ie, if to_p resolves to an existing file, it will always return/throw an error... NOT remove the existing file, as was documented. Or am I reading things wrong? cheers Paul
5533
Age (days ago)
5533
Last active (days ago)
0 comments
1 participants
participants (1)
-
Paul