summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PixelEngine.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-01-04 18:15:53 -0500
committerLioncash <mathew1800@gmail.com>2017-01-04 18:37:48 -0500
commit045a8400e6ddb854a79eaaa499d09d54345d3dc3 (patch)
tree54590b5b071b18873594ca3dce639e47be281db2 /Source/Core/VideoCommon/PixelEngine.cpp
parent9b8f5bce22173f66aafa5b008ff6c5b96cdb4994 (diff)
IOFile: Make the move constructor and move assignment operator noexcept
Certain parts of the standard library try to determine whether or not a transfer operation should either be a copy or a move. The prevalent notion of move constructors/assignment operators is that they should not throw, they simply move an already existing resource somewhere else. This is typically done with 'std::move_if_noexcept'. Like the name says, if a type's move constructor is noexcept, then the functions retrieves an r-value reference (for move semantics), or an l-value (for copy semantics) if it is not noexcept. As IOFile deletes the copy constructor and copy assignment operators, using IOFile with certain parts of the standard library can fail in unexcepted ways (especially when used with various container implementations). This prevents that.
Diffstat (limited to 'Source/Core/VideoCommon/PixelEngine.cpp')
0 files changed, 0 insertions, 0 deletions