mirror of https://github.com/CGAL/cgal
Merge pull request #1377 from afabri/BGL-OM_HAS_HASH-GF
hash_value is not defined inside an #ifdef OM_HAS_HASH
This commit is contained in:
commit
b97b709a8d
|
|
@ -22,15 +22,20 @@
|
||||||
|
|
||||||
#include <OpenMesh/Core/Mesh/Handles.hh>
|
#include <OpenMesh/Core/Mesh/Handles.hh>
|
||||||
|
|
||||||
#ifndef OM_HAS_HASH
|
#if OM_VERSION < 0x60200
|
||||||
|
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
namespace OpenMesh {
|
namespace OpenMesh {
|
||||||
|
|
||||||
inline std::size_t hash_value(const BaseHandle& h) { return h.idx(); }
|
inline std::size_t hash_value(const BaseHandle& h) { return h.idx(); }
|
||||||
|
|
||||||
} // namespace OpenMesh
|
} // namespace OpenMesh
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef OM_HAS_HASH
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue