mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-11 11:52:11 +00:00
[geometry] Replaced TODO comment with BOOST_ASSERT to guard unexpected execution point.
[SVN r68950]
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
#ifndef BOOST_GEOMETRY_SEGMENT_RANGE_ITERATOR_HPP
|
||||
#define BOOST_GEOMETRY_SEGMENT_RANGE_ITERATOR_HPP
|
||||
|
||||
#include <boost/assert.hpp>
|
||||
|
||||
#include <boost/iterator.hpp>
|
||||
#include <boost/iterator/iterator_facade.hpp>
|
||||
#include <boost/iterator/iterator_categories.hpp>
|
||||
@@ -79,8 +81,8 @@ private:
|
||||
{
|
||||
return m_points[m_index];
|
||||
}
|
||||
// Should not occur. Probably throw here.
|
||||
// TODO decide
|
||||
|
||||
BOOST_ASSERT(!"Should not occur"); // Probably throw here.
|
||||
return m_points[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user