未验证 提交 32aff3d3 编写于 作者: Z Zhilkin Serg 提交者: GitHub

Merge pull request #54403 from akrieger/default_moving

Cata stream subclasses need noexcept move operations.
......@@ -93,6 +93,8 @@ class basic_ifstream : public std::basic_ifstream<charT, traits>
}
basic_ifstream( const basic_ifstream & ) = delete;
const basic_ifstream &operator=( const basic_ifstream & ) = delete;
basic_ifstream( basic_ifstream && ) noexcept = default;
basic_ifstream &operator=( basic_ifstream && ) noexcept = default;
~basic_ifstream() override = default;
};
......@@ -109,6 +111,8 @@ class basic_ofstream : public std::basic_ofstream<charT, traits>
}
basic_ofstream( const basic_ofstream & ) = delete;
const basic_ofstream &operator=( const basic_ofstream & ) = delete;
basic_ofstream( basic_ofstream && ) noexcept = default;
basic_ofstream &operator=( basic_ofstream && ) noexcept = default;
~basic_ofstream() override = default;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册