Use attribute infrastructure to pass uniqueID tag.

This commit is contained in:
Guilhem Lavaux 2012-11-20 17:16:45 -05:00
parent fe62b7ef8d
commit 72cd279b25
2 changed files with 30 additions and 14 deletions

View file

@ -77,7 +77,7 @@ namespace CosmoTool
if (i == attributes.end())
return 0;
return reinterpret_cast<T *>(i->first);
return reinterpret_cast<T *>(i->second.first);
}
void new_attribute(const std::string& n, void *p, FreeFunction free_func)