2
0
mirror of https://github.com/boostorg/graph.git synced 2026-02-01 08:32:11 +00:00

Allowed use of reserve_count_for_single_pass with old interface; refs #3134

[SVN r54538]
This commit is contained in:
Jeremiah Willcock
2009-06-30 16:55:07 +00:00
parent 414f2b1af0
commit de12ad6911

View File

@@ -134,7 +134,6 @@ enum edges_are_unsorted_global_t {edges_are_unsorted_global};
template<typename Vertex, typename EdgeIndex>
class csr_edge_descriptor;
#ifdef BOOST_GRAPH_USE_NEW_CSR_INTERFACE
namespace detail {
template<typename InputIterator>
size_t
@@ -164,6 +163,7 @@ namespace detail {
return reserve_count_for_single_pass_helper(first, last, category());
}
#ifdef BOOST_GRAPH_USE_NEW_CSR_INTERFACE
template <typename T>
struct default_construct_iterator: public boost::iterator_facade<default_construct_iterator<T>, T, boost::random_access_traversal_tag, const T&> {
typedef boost::iterator_facade<default_construct_iterator<T>, T, std::random_access_iterator_tag, const T&> base_type;