Skip to content

Commit

Permalink
'Fix' compiler error on Mac.
Browse files Browse the repository at this point in the history
The compiler there isn't modern enough to understand that including <concepts> should add floating_point to std.
  • Loading branch information
rburema committed Nov 28, 2023
1 parent 6a47349 commit 592e0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/utils/SVG.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class SVG : NoCopy
* @param color The colour to draw the diagram with.
* @param stroke_width The width of the lines.
*/
template<std::floating_point T>
template<typename T> // Currently our compiler for Mac can't handle `template<std::floating_point T>`, since aparently floating_point isn't in std yet.
void writeVoronoiDiagram(const boost::polygon::voronoi_diagram<T>& voronoi_diagram, const Color color = Color::BLACK, const float stroke_width = 0.1) const
{
for (const auto& edge : voronoi_diagram.edges())
Expand Down

0 comments on commit 592e0b7

Please sign in to comment.