Skip to content

Commit

Permalink
make remaining CAngle functions constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
SizzinSeal committed Dec 29, 2024
1 parent c157d06 commit 1aff421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/units/Angle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class CAngle {
friend constexpr CAngle operator""_cRot(unsigned long long value);
public:
// we don't want CAngle to have move, copy, or assignment operators
CAngle& operator=(const CAngle&) = delete;
CAngle(const CAngle&) = delete;
constexpr CAngle& operator=(const CAngle&) = delete;
constexpr CAngle(const CAngle&) = delete;

// make CAngle able to be implicitly converted to Angle
constexpr operator Angle() const { return Angle(M_PI_2 - this->value); }
Expand Down

0 comments on commit 1aff421

Please sign in to comment.