[boost][filesystem] Rename throws exception if target file exists

I need to achieve an atomic move to replace an existing file. Is there anyway to do this using boost::filesystem? I thought rename would do this but it throws the following exception: " boost::filesystem::rename: File exists:" when the target file exists. -Sanjit

I doubt that is possible. You most likely need utilize some system libraries for such special requirements.
BR
Vinzenz Feenstra
Sent from my BlackBerry® smartphone
-----Original Message-----
From: Sanjit Jhala
participants (2)
-
Sanjit Jhala
-
Vinzenz Feenstra