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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top