Assigning a vector of one type to a vector of another type
Posted
by deworde
on Stack Overflow
See other posts from Stack Overflow
or by deworde
Published on 2010-04-14T01:18:20Z
Indexed on
2010/04/14
1:23 UTC
Read the original article
Hit count: 312
Hi,
I have an "Event" class. Due to the way dates are handled, we need to wrap this class in a "UIEvent" class, which holds the Event, and the date of the Event in another format.
What is the best way of allowing conversion from Event to UIEvent and back? I thought overloading the assignment or copy constructor of UIEvent to accept Events (and vice versa)might be best.
© Stack Overflow or respective owner