Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
call of overloaded is ambiguous: functions using template classes
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="mast4as, post: 4225357"] Hi Pavel Thank you very much for your answer... Sorry that I forgot copy all the needed code. dir is a Vector3f indeed here is the code. So from what you say should it work then ? What I understand from what you wrote is that C++ figures out the function to be called based on arguments but not on the returned value ? I would imagine it would look at the signature of the function which is wither Normal cross( vector vector ) or Vector cross( Vector Vector ) and use the right one based on the arguments and the type of the returned value requested ?!!! No ? -c int xxxxxxx( const Point3f &orig, const Vector3f &dir, const Point3f &vert0, const Point3f &vert1, const Point3f &vert2, float &t, float &u, float &v ) { Vector3f edge1 = vert1 - vert0; Vector3f edge2 = vert2 - vert0; Vector3f pvec = cross( dir, edge2 ); <<<< FAILS HERE [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
call of overloaded is ambiguous: functions using template classes
Top