We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05f4ff9 commit e69c518Copy full SHA for e69c518
1 file changed
src/geom-functions.cpp
@@ -252,18 +252,18 @@ namespace {
252
class without_first
253
{
254
public:
255
- explicit without_first(point_list_t const &list) : m_list(list) {}
+ explicit without_first(point_list_t const &list) : m_list(&list) {}
256
257
point_list_t::const_iterator begin()
258
259
- assert(m_list.begin() != m_list.end());
260
- return std::next(m_list.begin());
+ assert(m_list->begin() != m_list->end());
+ return std::next(m_list->begin());
261
}
262
263
- point_list_t::const_iterator end() { return m_list.end(); }
+ point_list_t::const_iterator end() { return m_list->end(); }
264
265
private:
266
- point_list_t const &m_list;
+ point_list_t const *m_list;
267
}; // class without_first
268
269
} // anonymous namespace
0 commit comments