Skip to content

Commit

Permalink
Merge pull request #86 from ihm-tswow/default
Browse files Browse the repository at this point in the history
noggit: fix endless recursion on degree print
  • Loading branch information
bloerwald authored May 13, 2021
2 parents 3315198 + d0e5d64 commit ab48a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/math/trig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace math

friend std::ostream& operator<< (std::ostream& os, degrees const& v)
{
return os << v << "°";
return os << v._ << "°";
}

using vec3 = vector_3d_base<degrees>;
Expand Down Expand Up @@ -104,4 +104,4 @@ inline math::degrees operator"" _deg (long double v)
inline math::degrees operator"" _deg (unsigned long long int v)
{
return math::degrees {static_cast<float> (v)};
}
}

0 comments on commit ab48a76

Please sign in to comment.