Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68950 - trunk/boost/geometry/iterators
From: mateusz_at_[hidden]
Date: 2011-02-16 11:41:54


Author: mloskot
Date: 2011-02-16 11:41:53 EST (Wed, 16 Feb 2011)
New Revision: 68950
URL: http://svn.boost.org/trac/boost/changeset/68950

Log:
[geometry] Replaced TODO comment with BOOST_ASSERT to guard unexpected execution point.
Text files modified:
   trunk/boost/geometry/iterators/segment_range_iterator.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/boost/geometry/iterators/segment_range_iterator.hpp
==============================================================================
--- trunk/boost/geometry/iterators/segment_range_iterator.hpp (original)
+++ trunk/boost/geometry/iterators/segment_range_iterator.hpp 2011-02-16 11:41:53 EST (Wed, 16 Feb 2011)
@@ -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 @@
         {
             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];
     }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk