Skip to content
Snippets Groups Projects
Unverified Commit 818c2de7 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #58 from jmirabel/devel

Declare CachedMeshLoader::Key::operator<
parents f3f0639e 632e3156
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,8 @@ namespace fcl {
Key (const std::string& f, const Vec3f& s, const NODE_TYPE& t)
: filename (f), scale (s), bvType (t) {}
bool operator< (const CachedMeshLoader::Key& b) const;
};
typedef std::map <Key, CollisionGeometryPtr_t> Cache_t;
......
......@@ -42,8 +42,9 @@
namespace hpp
{
namespace fcl {
bool operator< (const CachedMeshLoader::Key& a, const CachedMeshLoader::Key& b)
bool CachedMeshLoader::Key::operator< (const CachedMeshLoader::Key& b) const
{
const CachedMeshLoader::Key& a = *this;
if (a.bvType < b.bvType) return true;
if (a.bvType > b.bvType) return false;
for (int i = 0; i < 3; ++i) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment