Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67035 - in trunk: boost/pending libs/graph/example
From: jewillco_at_[hidden]
Date: 2010-12-05 15:38:45


Author: jewillco
Date: 2010-12-05 15:38:44 EST (Sun, 05 Dec 2010)
New Revision: 67035
URL: http://svn.boost.org/trac/boost/changeset/67035

Log:
Removed <boost/pending/integer_range.hpp> and a few more uses of it; fixes #4642
Removed:
   trunk/boost/pending/integer_range.hpp
Text files modified:
   trunk/libs/graph/example/bfs-example.cpp | 2 +-
   trunk/libs/graph/example/bfs-example2.cpp | 2 +-
   trunk/libs/graph/example/dfs-example.cpp | 2 +-
   3 files changed, 3 insertions(+), 3 deletions(-)

Deleted: trunk/boost/pending/integer_range.hpp
==============================================================================
--- trunk/boost/pending/integer_range.hpp 2010-12-05 15:38:44 EST (Sun, 05 Dec 2010)
+++ (empty file)
@@ -1,59 +0,0 @@
-// (C) Copyright David Abrahams and Jeremy Siek 2000-2001.
-// Distributed under the Boost Software License, Version 1.0. (See
-// accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-//
-// Revision History:
-// 04 Jan 2001 Factored counting_iterator stuff into
-// boost/counting_iterator.hpp (David Abrahams)
-
-#ifndef BOOST_INTEGER_RANGE_HPP_
-#define BOOST_INTEGER_RANGE_HPP_
-
-#include <boost/config.hpp>
-#include <boost/iterator/counting_iterator.hpp>
-#include <algorithm>
-
-namespace boost {
-
-//=============================================================================
-// Counting Iterator and Integer Range Class
-
-template <class IntegerType>
-struct integer_range {
- typedef counting_iterator<IntegerType> iterator;
-
- typedef iterator const_iterator;
- typedef IntegerType value_type;
- typedef std::ptrdiff_t difference_type;
- typedef IntegerType reference;
- typedef IntegerType const_reference;
- typedef const IntegerType* pointer;
- typedef const IntegerType* const_pointer;
- typedef IntegerType size_type;
-
- integer_range(IntegerType start, IntegerType finish)
- : m_start(start), m_finish(finish) { }
-
- iterator begin() const { return iterator(m_start); }
- iterator end() const { return iterator(m_finish); }
- size_type size() const { return m_finish - m_start; }
- bool empty() const { return m_finish == m_start; }
- void swap(integer_range& x) {
- std::swap(m_start, x.m_start);
- std::swap(m_finish, x.m_finish);
- }
-protected:
- IntegerType m_start, m_finish;
-};
-
-template <class IntegerType>
-inline integer_range<IntegerType>
-make_integer_range(IntegerType first, IntegerType last)
-{
- return integer_range<IntegerType>(first, last);
-}
-
-} // namespace boost
-
-#endif // BOOST_INTEGER_RANGE_HPP_

Modified: trunk/libs/graph/example/bfs-example.cpp
==============================================================================
--- trunk/libs/graph/example/bfs-example.cpp (original)
+++ trunk/libs/graph/example/bfs-example.cpp 2010-12-05 15:38:44 EST (Sun, 05 Dec 2010)
@@ -8,7 +8,7 @@
 #include <boost/graph/adjacency_list.hpp>
 #include <boost/graph/breadth_first_search.hpp>
 #include <boost/pending/indirect_cmp.hpp>
-#include <boost/pending/integer_range.hpp>
+#include <boost/range/irange.hpp>
 
 #include <iostream>
 

Modified: trunk/libs/graph/example/bfs-example2.cpp
==============================================================================
--- trunk/libs/graph/example/bfs-example2.cpp (original)
+++ trunk/libs/graph/example/bfs-example2.cpp 2010-12-05 15:38:44 EST (Sun, 05 Dec 2010)
@@ -8,7 +8,7 @@
 #include <boost/graph/adjacency_list.hpp>
 #include <boost/graph/breadth_first_search.hpp>
 #include <boost/pending/indirect_cmp.hpp>
-#include <boost/pending/integer_range.hpp>
+#include <boost/range/irange.hpp>
 
 #include <iostream>
 

Modified: trunk/libs/graph/example/dfs-example.cpp
==============================================================================
--- trunk/libs/graph/example/dfs-example.cpp (original)
+++ trunk/libs/graph/example/dfs-example.cpp 2010-12-05 15:38:44 EST (Sun, 05 Dec 2010)
@@ -7,7 +7,7 @@
 //=======================================================================
 #include <boost/graph/adjacency_list.hpp>
 #include <boost/graph/depth_first_search.hpp>
-#include <boost/pending/integer_range.hpp>
+#include <boost/range/irange.hpp>
 #include <boost/pending/indirect_cmp.hpp>
 
 #include <iostream>


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