mercredi 6 décembre 2017

How to add a user-defined typecast for a variable in c++?

I have a class with functions that take vector as input and also return vector.

I want to overload this function to take Eigen::vectorXd as input and output. I have many functions that need to be overloaded. Is there a way to create a typecast which would typecast Eigen::vecrtorXd to vector for all these functions?

Aucun commentaire:

Enregistrer un commentaire