I want to convert a class to another class. I'm trying to use static_cas which almost always work for me, why doesn't it work in the following?
struct Mouse
{
Mouse() {}
// .......
};
struct Mice
{
Mice() {}
// .........
};
int main()
{
Mouse mouse;
Mice mice = static_cast<Mice>(mouse);
}