Some Errors need help understanding

B

Brett Baisley

I got an example that works at school, and it should work here as well. The
problem I think is that VS.net won't allow multiple constructors.

Here are the 3 errors I get:

1. warning C4521: 'Vector3' : multiple copy constructors specified
2. error C2668: 'Vector3::set' : ambiguous call to overloaded function

I get the second one twice, once from each of these lines of code:
u.set(up.cross(n));
v.set(n.cross(u));

Any ideas?

Brett
 
J

Julian Nicholls

Well, showing your code would help...

You certainly can't have multiple copy constructors. I would guess that one
of your constructors ends up with the same signature as the copy
constructor, possibly due to a typedef being different

Best Regards
Julian N.
 

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

Top