Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings: friend operators not declared within the same namespace #265

Open
wants to merge 1 commit into
base: ros2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions octovis/src/extern/QGLViewer/VRender/NVector3.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ namespace vrender

}; // interface of NVector3

double operator*(const NVector3 &u,const Vector3 &v);
double operator*(const Vector3 &u,const NVector3 &v);

}

#endif // _NVECTOR3_H
2 changes: 2 additions & 0 deletions octovis/src/extern/QGLViewer/VRender/Primitive.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ namespace vrender
class Feedback3DColor ;
class Primitive ;

std::ostream& operator<<(std::ostream&,const Feedback3DColor&);

#define EPS_SMOOTH_LINE_FACTOR 0.06 /* Lower for better smooth lines. */

// A Feedback3DColor is a structure containing informations about a vertex projected into
Expand Down
2 changes: 2 additions & 0 deletions octovis/src/extern/QGLViewer/VRender/Vector2.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ namespace vrender
double _xyz[2]; //!< The 3 vector components

}; // interface of Vector2

Vector2 operator- (const Vector2&);
}

#endif // _VECTOR2_H
3 changes: 3 additions & 0 deletions octovis/src/extern/QGLViewer/VRender/Vector3.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,8 @@ namespace vrender
double _xyz[3]; //!< The 3 vector components

}; // interface of Vector3

Vector3 operator* (double,const Vector3&);
std::ostream& operator<< (std::ostream&,const Vector3&);
}
#endif // _VECTOR3_H