Skip to content

Commit

Permalink
#33 Fix compilation errors in Visual Studio 2019
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-ogre committed Mar 11, 2021
1 parent 57dcf37 commit a98f17f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CDT/include/CDTUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "predicates.h" // robust predicates: orient, in-circle
//! @}

#include <stdexcept>

namespace CDT
{

Expand Down
2 changes: 1 addition & 1 deletion visualizer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public slots:
const V2d& v3 = m_cdt.vertices[t->vertices[2]].pos;
const CDT::array<QPointF, 3> pts = {
sceneToScreen(v1), sceneToScreen(v2), sceneToScreen(v3)};
p.drawPolygon(pts.begin(), pts.size());
p.drawPolygon(pts.data(), pts.size());
}
// constraint edges
pen.setColor(QColor(50, 50, 50));
Expand Down

0 comments on commit a98f17f

Please sign in to comment.