[C++-sig] vector in class

david stummer stummer at gmail.com
Mon Apr 17 16:25:24 CEST 2006


i managed to get a vector working on it's own using

    typedef std::vector<int> IntVec;

    class_<IntVec>("bankrolls")
        .def(vector_indexing_suite<IntVec>())
    ;

but now i would like to make a vector a member of a class.

what steps would i take to make the vector a member of a c++ class and have
it callable from python?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20060417/94d28170/attachment.htm>


More information about the Cplusplus-sig mailing list