I have two classes: A
and B
, and an implicit conversion from A
s to B
s. I also have a vector<A>
, and I want to convert it to vector<B>
. Is it possible to add a conversion that would allow me to implicitly or explicitly convert vector<A>
to vector<B>
?
I know I can use the technique described here, but is there some way to enable an implicit conversion between the two? Or an explicit conversion?