From 8b2f4b4ce0fa0dc091a190803d492768139d2dce Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Thu, 8 Dec 2005 22:15:31 +0000 Subject: [PATCH] make test work on vc6 [SVN r31960] --- test/stl_iterator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/stl_iterator.cpp b/test/stl_iterator.cpp index 8676ef73..409e0da8 100755 --- a/test/stl_iterator.cpp +++ b/test/stl_iterator.cpp @@ -15,7 +15,9 @@ typedef std::list list_int; void assign(list_int& x, object const& y) { stl_input_iterator begin(y), end; - x.assign(begin, end); + x.clear(); + for( ; begin != end; ++begin) + x.push_back(*begin); } BOOST_PYTHON_MODULE(stl_iterator_ext)