fs: Optimize filesystem handle reconstruction
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user