mirror of
https://github.com/boostorg/python.git
synced 2026-02-02 21:12:15 +00:00
Initial attempt to fix problems
[SVN r10158]
This commit is contained in:
@@ -14,16 +14,14 @@ namespace vects {
|
||||
{
|
||||
std::vector<int>::iterator v_it = begin();
|
||||
for (int i = 0; i < tuple.size(); i++)
|
||||
v_it[i] = BOOST_PYTHON_CONVERSION::from_python(tuple[i].get(),
|
||||
boost::python::type<int>());
|
||||
v_it[i] = from_python(tuple[i].get(), boost::python::type<int>());
|
||||
}
|
||||
|
||||
boost::python::tuple as_tuple() const
|
||||
{
|
||||
boost::python::tuple t(size());
|
||||
for (int i = 0; i < size(); i++)
|
||||
t.set_item(i,
|
||||
boost::python::ref(BOOST_PYTHON_CONVERSION::to_python((*this)[i])));
|
||||
t.set_item(i, (*this)[i]);
|
||||
return t;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user