Boost logo

Boost :

From: rcspython_at_[hidden]
Date: 2001-05-03 12:38:34

I have looked at the simple_vector.cpp file. My question is how do
you actually incorporate this functionality into an existing class?
I very much want to return a vector from MY C++ class.

I have a private member

std::vector<double> myvect;

Do I have to vector_double_wrapper myvect; instead?
And then...
  vector_double_wrapper GetVector(void){ return myvect;};

Then add this to the class myclass.def(GetVector,"GetVector")?

I appreciate that I cannot simply return a raw vector but and not
sure about how to hook up the plumbing.

I am having a terrible mental block... don't laugh. ;p


Boost list run by bdawes at, gregod at, cpdaniel at, john at