WORKS:
LLGroupMgrGroupData* LLGroupMgr::getGroupData(const LLUUID& id)
{
group_map_t::iterator gi = mGroups.find(id);
if (gi != mGroups.end())
{
return gi->second;
}
return NULL;
}
DOESN'T WORK:
// static
LLGroupMgrGroupData* LLGroupMgr::getStaticGroupData(const LLUUID& id)
{
group_map_t::iterator gi = mGroups.find(id);
if (gi != mGroups.end())
{
return gi->second;
}
return NULL;
}
Error 1 error C2228: left of '.find' must have class/struct/union
Error 2 error C2228: left of '.end' must have class/struct/union
i get those errors only on the second part, the only diffrences is that the second one is static...
here is the header file:
class LLGroupMgr : public LLSingleton<LLGroupMgr>
{
public:
LLGroupMgr();
~LLGroupMgr();
LLGroupMgrGroupData* getGroupData(const LLUUID& id);
static LLGroupMgrGroupData* getStaticGroupData(const LLUUID& id);
private:
typedef std::map<LLUUID, LLGroupMgrGroupData*> group_map_t;
group_map_t mGroups;
};
Please help me solving this out im going crazy !