Skip to content

Commit 3981e83

Browse files
committed
workaround MSVC linker bug
[SVN r19713]
1 parent 88b9721 commit 3981e83

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

include/boost/python/suite/indexing/vector_indexing_suite.hpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ namespace boost { namespace python {
188188
private:
189189

190190
static void
191-
base_append(Container& container, PyObject* v)
191+
base_append(Container& container, object v)
192192
{
193193
extract<data_type&> elem(v);
194194
// try if elem is an exact Data
@@ -214,12 +214,10 @@ namespace boost { namespace python {
214214
}
215215

216216
static void
217-
base_extend(Container& container, PyObject* v)
217+
base_extend(Container& container, object v)
218218
{
219219
std::vector<data_type> temp;
220-
handle<> l_(borrowed(v));
221-
object l(l_);
222-
container_utils::extend_container(temp, l);
220+
container_utils::extend_container(temp, v);
223221
DerivedPolicies::extend(container, temp.begin(), temp.end());
224222
}
225223
};

0 commit comments

Comments
 (0)