system/UniqueFileDescriptor: make the "int" constructor public

This commit is contained in:
Max Kellermann 2018-08-22 15:39:45 +02:00
parent dda5516eec
commit b1390ec27f
1 changed files with 2 additions and 5 deletions

View File

@ -44,12 +44,9 @@ public:
UniqueFileDescriptor() noexcept
:FileDescriptor(FileDescriptor::Undefined()) {}
protected:
explicit UniqueFileDescriptor(int _fd) noexcept:FileDescriptor(_fd) {
assert(IsDefined());
}
explicit UniqueFileDescriptor(int _fd) noexcept
:FileDescriptor(_fd) {}
public:
explicit UniqueFileDescriptor(FileDescriptor _fd) noexcept
:FileDescriptor(_fd) {}