Hi
how to call and use the return value of:
----
void SDatabase::getNdb(const std::string &id, StdWaypointList *list)
{
int cnt = m_ndb_map.count(id);
if (cnt != 0) {
NdbMapIterator it = m_ndb_map.find(id);
int i;
for (i = 0; i < cnt; i++) {
Waypoint *wpt = (*it).second->asWaypoint();
list->push_back(wpt);
it++;
}
}
};
-----
If I try like:
StdWaypointList *testlist;
it4->second = SDatabase::getNdb(msg,testlist);
I get:
void value not ignored as it ought to be
Many thanks