|
|
|
@ -3,6 +3,7 @@
|
|
|
|
#include <limits>
|
|
|
|
#include <limits>
|
|
|
|
#include <tuple>
|
|
|
|
#include <tuple>
|
|
|
|
#include <type_traits>
|
|
|
|
#include <type_traits>
|
|
|
|
|
|
|
|
#include <cstring>
|
|
|
|
|
|
|
|
|
|
|
|
namespace Common {
|
|
|
|
namespace Common {
|
|
|
|
|
|
|
|
|
|
|
|
@ -63,10 +64,7 @@ struct Rectangle
|
|
|
|
/// Assignment operator.
|
|
|
|
/// Assignment operator.
|
|
|
|
constexpr Rectangle& operator=(const Rectangle& rhs)
|
|
|
|
constexpr Rectangle& operator=(const Rectangle& rhs)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
left = rhs.left;
|
|
|
|
std::memcpy(this, &rhs, sizeof(Rectangle));
|
|
|
|
top = rhs.top;
|
|
|
|
|
|
|
|
right = rhs.right;
|
|
|
|
|
|
|
|
bottom = rhs.bottom;
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -193,4 +191,4 @@ struct Rectangle
|
|
|
|
T bottom;
|
|
|
|
T bottom;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace Common
|
|
|
|
} // namespace Common
|
|
|
|
|