SWIG c++ to python : vector problems
问题 I am following the documentation here: http://www.swig.org/Doc3.0/Library.html#Library_stl_cpp_library to write a wrapper to a simple example code involving vectors. Here is the header file: ### word.h ### #include<string> #include<vector> class Word{ public: Word(std::string word, int numWords, std::vector<double> &values); ~Word(); void updateWord(std::string newWord); std::string getWord(); void processValues(); private: std::string theWord; int totalWords; std::vector<double> values; };