Skip to content
Snippets Groups Projects
Commit f0a7fed4 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

Merge branch 'fixDBGBuild' into 'master'

BUG: Fix compilation error in oneToOneMap

See merge request iMSTK/iMSTK!454
parents 3c0152a8 3fe804f9
No related branches found
No related tags found
No related merge requests found
......@@ -228,4 +228,13 @@ OneToOneMap::setSlave(std::shared_ptr<Geometry> slave)
}
GeometryMap::setSlave(slave);
}
size_t
OneToOneMap::getMapIdx(const size_t& idx)
{
#if defined(DEBUG) || defined(_DEBUG) || !defined(NDEBUG)
CHECK(m_oneToOneMap.find(idx) != m_oneToOneMap.end()) << "Invalid source index";
#endif
return m_oneToOneMap[idx];
}
} // imstk
......@@ -95,13 +95,7 @@ public:
///
/// \brief
///
size_t getMapIdx(const size_t& idx) override
{
#if defined(DEBUG) || defined(_DEBUG) || !defined(NDEBUG)
LOG_IF(FATAL, (m_oneToOneMap.find(idx) == m_oneToOneMap.end())) << "Invalid source index";
#endif
return m_oneToOneMap[idx];
}
size_t getMapIdx(const size_t& idx) override;
protected:
......
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