mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Mark move operators as noexcept
This commit is contained in:
parent
9a4426fb35
commit
718195bf25
@ -83,13 +83,13 @@ public:
|
||||
/// \brief Move constructor
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
FileInputStream(FileInputStream&&);
|
||||
FileInputStream(FileInputStream&&) noexcept;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Move assignment
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
FileInputStream& operator=(FileInputStream&&);
|
||||
FileInputStream& operator=(FileInputStream&&) noexcept;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Open the stream from a file path
|
||||
|
@ -52,11 +52,11 @@ FileInputStream::~FileInputStream() = default;
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
FileInputStream::FileInputStream(FileInputStream&&) = default;
|
||||
FileInputStream::FileInputStream(FileInputStream&&) noexcept = default;
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
FileInputStream& FileInputStream::operator=(FileInputStream&&) = default;
|
||||
FileInputStream& FileInputStream::operator=(FileInputStream&&) noexcept = default;
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -6,8 +6,14 @@
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <string_view>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
static_assert(!std::is_copy_constructible_v<sf::FileInputStream>);
|
||||
static_assert(!std::is_copy_assignable_v<sf::FileInputStream>);
|
||||
static_assert(std::is_nothrow_move_constructible_v<sf::FileInputStream>);
|
||||
static_assert(std::is_nothrow_move_assignable_v<sf::FileInputStream>);
|
||||
|
||||
static std::string getTemporaryFilePath()
|
||||
{
|
||||
static int counter = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user