Compile fix

felipesanches-svg
Marius Kintel 2012-01-08 02:45:58 +01:00
parent fe3362faf8
commit 9d428bf515
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,10 @@
CGALCache *CGALCache::inst = NULL;
CGALCache::CGALCache(size_t limit) : cache(limit)
{
}
void CGALCache::insert(const std::string &id, const CGAL_Nef_polyhedron &N)
{
this->cache.insert(id, new CGAL_Nef_polyhedron(N), N.weight());

View File

@ -8,7 +8,7 @@
class CGALCache
{
public:
CGALCache(size_t limit = 100*1024*1024) : cache(limit) {}
CGALCache(size_t limit = 100*1024*1024);
static CGALCache *instance() { if (!inst) inst = new CGALCache; return inst; }