mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
fix(Core/Misc): Remove c++ check for c++11 (#10439)
This commit is contained in:
@@ -510,11 +510,8 @@ public:
|
||||
part[2] = right.part[2];
|
||||
return *this;
|
||||
}
|
||||
/* requried as of C++ 11 */
|
||||
#if __cplusplus >= 201103L
|
||||
flag96(const flag96&) = default;
|
||||
flag96(flag96&&) = default;
|
||||
#endif
|
||||
|
||||
inline flag96 operator&(flag96 const& right) const
|
||||
{
|
||||
|
||||
@@ -250,12 +250,9 @@ struct Position
|
||||
: m_positionX(x), m_positionY(y), m_positionZ(z), m_orientation(NormalizeOrientation(o)) { }
|
||||
|
||||
Position(Position const& loc) { Relocate(loc); }
|
||||
/* requried as of C++ 11 */
|
||||
#if __cplusplus >= 201103L
|
||||
Position(Position&&) = default;
|
||||
Position& operator=(const Position&) = default;
|
||||
Position& operator=(Position&&) = default;
|
||||
#endif
|
||||
|
||||
struct PositionXYStreamer
|
||||
{
|
||||
|
||||
@@ -1219,12 +1219,9 @@ public:
|
||||
_posOwner.Relocate(c._posOwner);
|
||||
_posTarget.Relocate(c._posTarget);
|
||||
}
|
||||
/* requried as of C++ 11 */
|
||||
#if __cplusplus >= 201103L
|
||||
MMapTargetData(MMapTargetData&&) = default;
|
||||
MMapTargetData& operator=(const MMapTargetData&) = default;
|
||||
MMapTargetData& operator=(MMapTargetData&&) = default;
|
||||
#endif
|
||||
[[nodiscard]] bool PosChanged(const Position& o, const Position& t) const
|
||||
{
|
||||
return _posOwner.GetExactDistSq(&o) > 0.5f * 0.5f || _posTarget.GetExactDistSq(&t) > 0.5f * 0.5f;
|
||||
|
||||
@@ -79,12 +79,9 @@ namespace Movement
|
||||
MoveSplineFlag() { raw() = 0; }
|
||||
MoveSplineFlag(uint32 f) { raw() = f; }
|
||||
MoveSplineFlag(const MoveSplineFlag& f) { raw() = f.raw(); }
|
||||
/* requried as of C++ 11 */
|
||||
#if __cplusplus >= 201103L
|
||||
MoveSplineFlag(MoveSplineFlag&&) = default;
|
||||
MoveSplineFlag& operator=(const MoveSplineFlag&) = default;
|
||||
MoveSplineFlag& operator=(MoveSplineFlag&&) = default;
|
||||
#endif
|
||||
|
||||
// Constant interface
|
||||
|
||||
|
||||
Reference in New Issue
Block a user