Put mesh_cast methods into surrounding namespace so clang finds them.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@960 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Hans-Christian Ebke
2013-09-23 09:35:47 +00:00
parent a7d3a16a28
commit dc5785e812

View File

@@ -66,7 +66,6 @@
namespace OpenMesh { namespace OpenMesh {
//== CLASS DEFINITION ========================================================= //== CLASS DEFINITION =========================================================
@@ -493,6 +492,8 @@ public:
inline void split(EdgeHandle _eh, VertexHandle _vh) inline void split(EdgeHandle _eh, VertexHandle _vh)
{ Kernel::split_edge(_eh, _vh); } { Kernel::split_edge(_eh, _vh); }
};
/** /**
* @brief Cast a mesh with different but identical traits into each other. * @brief Cast a mesh with different but identical traits into each other.
* *
@@ -518,32 +519,26 @@ public:
* @param rhs * @param rhs
* @return * @return
*/ */
template<typename LHS> template<typename LHS, typename KERNEL>
friend LHS mesh_cast(PolyMeshT<KERNEL> &rhs) {
LHS mesh_cast(PolyMeshT &rhs) { return MeshCast<LHS, PolyMeshT<KERNEL>&>::cast(rhs);
return MeshCast<LHS, PolyMeshT&>::cast(rhs);
} }
template<typename LHS> template<typename LHS, typename KERNEL>
friend LHS mesh_cast(PolyMeshT<KERNEL> *rhs) {
LHS mesh_cast(PolyMeshT *rhs) { return MeshCast<LHS, PolyMeshT<KERNEL>*>::cast(rhs);
return MeshCast<LHS, PolyMeshT*>::cast(rhs);
} }
template<typename LHS> template<typename LHS, typename KERNEL>
friend const LHS mesh_cast(const PolyMeshT<KERNEL> &rhs) {
const LHS mesh_cast(const PolyMeshT &rhs) { return MeshCast<LHS, const PolyMeshT<KERNEL>&>::cast(rhs);
return MeshCast<LHS, const PolyMeshT&>::cast(rhs);
} }
template<typename LHS> template<typename LHS, typename KERNEL>
friend const LHS mesh_cast(const PolyMeshT<KERNEL> *rhs) {
const LHS mesh_cast(const PolyMeshT *rhs) { return MeshCast<LHS, const PolyMeshT<KERNEL>*>::cast(rhs);
return MeshCast<LHS, const PolyMeshT*>::cast(rhs);
} }
};
//============================================================================= //=============================================================================
} // namespace OpenMesh } // namespace OpenMesh