fs: Optimize filesystem handle reconstruction

This commit is contained in:
Eladash
2021-05-11 22:09:46 +03:00
committed by Ivan
parent 0bd64a0e72
commit f7b845d49c
+1
View File
@@ -220,6 +220,7 @@ namespace fs
template <typename... Args>
bool open(Args&&... args)
{
m_file.reset();
*this = fs::file(std::forward<Args>(args)...);
return m_file.operator bool();
}