cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Geometry': ambiguous symbol

Anonymous
Not applicable
Hello,

I got error message below while I compiled my code.

Error C2872 'Geometry': ambiguous symbol ...\acwin23.3006\modules\geometry\vector3d.hpp 403

The problematic piece of code is the following in vector3d.hpp

template<typename Coordinate>
bool Geometry::Vector3<Coordinate>::IsNear (const Vector3& c, double eps /*= SmallEps*/) const
{
return (*this - c).GetLengthSqr () < eps * eps;
}

Is it necessary define "Geometry" namespace even when you are "namespace Geometry {...}" ?

It collide my piece of code which I do not want to change unless it is absolutely necessary.

As a workaround I have deleted "Geometry::", but I am not sure whether it cause any trouble elsewhere in your code.

Regards
0 REPLIES 0

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!