Copying struct

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I've got the following problem: I've got two structures in different
namespaces that are just the same (name, members, types,...), but - as they
are in different namespaces - I just cannot copy the one into the other,
can't I? Is there any way to do this?

Thanks
Peter
 
Hi Peter,
I've got the following problem: I've got two structures in different
namespaces that are just the same (name, members, types,...), but -
as they are in different namespaces - I just cannot copy the one into
the other, can't I? Is there any way to do this?

Sure, you can copy just the fields. But ...
if you have two structs which are the same in different namespaces, you have
one struct too much - you need to think about your application's design (and
I think you need to change it) ...

Regards,

Frank Eller
www.frankeller.de
 
Back
Top