Some Errors need help understanding

  • Thread starter Thread starter Brett Baisley
  • Start date Start date
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
 
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.
 
Back
Top