Skip to content

Commit 527a56f

Browse files
committed
Remove dependency on Iterator
1 parent f1003a9 commit 527a56f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/boost/thread/future.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ struct shared_state_base {
6363
#include <boost/enable_shared_from_this.hpp>
6464
#include <boost/exception_ptr.hpp>
6565
#include <boost/function.hpp>
66-
#include <boost/next_prior.hpp>
6766
#include <boost/scoped_array.hpp>
6867
#include <boost/shared_ptr.hpp>
6968
#include <boost/smart_ptr/make_shared.hpp>

include/boost/thread/futures/wait_for_any.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <boost/thread/condition_variable.hpp>
1818

1919
#include <boost/core/enable_if.hpp>
20-
#include <boost/next_prior.hpp>
2120
#include <boost/scoped_array.hpp>
2221

2322
#include <iterator>
@@ -155,7 +154,9 @@ namespace boost
155154
{
156155
waiter.add(*current);
157156
}
158-
return boost::next(begin, waiter.wait());
157+
158+
std::advance( begin, waiter.wait() );
159+
return begin;
159160
}
160161
}
161162

0 commit comments

Comments
 (0)