34 #include <boost/python.hpp>
35 #if BOOST_VERSION < 103300
36 #include "vector_indexing_suite.hpp"
38 #include <boost/python/suite/indexing/vector_indexing_suite.hpp>
54 std::cout <<
"*** copy constructor is called" << std::endl;
63 std::cout <<
"*** @" <<
this <<
": i="
73 std::cout <<
"*** size of AVector= " << vec.size() << std::endl;
74 for (
int i=0; i< vec.size(); i++) {
86 class_<AClass, AClass*>(
"AClass",
"a class")
91 class_<AVector> (
"AVector",
"AClass vector")
92 .def(vector_indexing_suite<AVector>())
std::vector< AClass * > AVector
void PrintVector(const AVector &vec)
BOOST_PYTHON_MODULE(test12)
void Print(const std::vector< T > &data)
AClass(const AClass &right)