|
Boost-Commit : |
From: chintanraoh_at_[hidden]
Date: 2008-06-04 10:58:03
Author: chintanraoh
Date: 2008-06-04 10:58:02 EDT (Wed, 04 Jun 2008)
New Revision: 46114
URL: http://svn.boost.org/trac/boost/changeset/46114
Log:
prefix search now returns [beg,end) instead of [beg,end]
Text files modified:
sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/trie.hpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/trie.hpp
==============================================================================
--- sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/trie.hpp (original)
+++ sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/trie.hpp 2008-06-04 10:58:02 EDT (Wed, 04 Jun 2008)
@@ -120,7 +120,8 @@
std::cout<<"deleting:"<<*temp_it<<std::endl;
temp_cur->erase(fit);
- it=temp_it+1;
+ it=temp_it;
+ ++it;
while(it!=end_it)
{
@@ -285,7 +286,7 @@
right=ret_it;
ret_it.to_left_most();
right.to_right_most();
- return std::make_pair(ret_it,right);
+ return std::make_pair(ret_it,++right);
}
void swap(type &other)
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