I'm required to "transfer" my c++ implementation as an addition to already existing c code. The main problem are the structures that I use in c++, and that are not recognized by c. For instance, the struct
has a std::vector member. My c++ is largely relying on the above struct, but also onCode:struct Matrix { std::vector<double> mat; unsigned int rowNo; unsigned int colNo; };
std::vectors. What is your suggestion on most efficient transition?
It would be very good if I could somehow declare the structures that I use in C++, in C, and then simply copy methods.
Thanks.