[geometry] Replaced TODO comment with BOOST_ASSERT to guard unexpected execution point.

[SVN r68950]
This commit is contained in:
Mateusz Loskot
2011-02-16 16:41:53 +00:00
parent 2bd6df2ce3
commit 90e46544b5

View File

@@ -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];
}