Skip to content

Commit

Permalink
Fix windows build issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Feb 19, 2020
1 parent cdfd908 commit 55b9c96
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pdal/PointView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ class PointViewIter
public:
using iterator_category = std::random_access_iterator_tag;
using value_type = PointRef;
using difference_type = point_count_t;
using difference_type = ptrdiff_t;
using pointer = PointRef*;
using reference = PointRef;

Expand All @@ -651,7 +651,7 @@ class PointViewIter
PointViewIter operator-=(const difference_type& n)
{ m_id -= n; return *this; }
difference_type operator-(const PointViewIter& i) const
{ return m_id - i.m_id; }
{ return static_cast<difference_type>(m_id - i.m_id); }

bool operator==(const PointViewIter& i)
{ return m_id == i.m_id; }
Expand All @@ -668,6 +668,8 @@ class PointViewIter

reference operator*()
{ return PointRef(*m_view, m_id); }
const reference operator*() const
{ return PointRef(*m_view, m_id); }
pointer operator->()
{ return nullptr; }
reference operator[](const difference_type& n) const
Expand Down

0 comments on commit 55b9c96

Please sign in to comment.