[C++-sig] Problem with std::vector<boost::python::object>
Pierre Barbier de Reuille
pierre.barbier at cirad.fr
Mon Jul 28 17:32:09 CEST 2003
I'd want to know why I can't compile this:
void insert( vector<object>* o, object obj )
{
insert_iterator<vector<object> > ii( *o, o->end() );
*ii = obj;
}
I use g++-3.2 and the output is:
/usr/include/c++/3.2/bits/stl_vector.h:550: conversion from `
boost::python::api::object' to non-scalar type `
__gnu_cxx::__normal_iterator<boost::python::api::object*,
std::vector<boost::python::api::object,
std::allocator<boost::python::api::object> > >' requested
Thansk,
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de la Lironde
34398 MONTPELLIER CEDEX 5, France
tel : (33) 4 67 61 65 77 fax : (33) 4 67 61 56 68
More information about the Cplusplus-sig
mailing list