Originally posted by RichardP
View Post
- get_zone_by_ID() can now also be used to locate DHW by ID
- DHW is now a zone() object that can be accessed through *tcs->dhw[0]
- I've replaced all map<int, T> occurrences in the code to vector<T>
If you used any map iterators like this:Code:for (std::map<int, EvohomeClient::zone>::iterator it=*tcs->zones.begin(); it!=*tcs->zones.end(); ++it) A = it->first B = it->second
Code:for (std::vector<EvohomeClient::zone>::size_type i = 0; i < *tcs->zones.size(); ++i) A = i B = tcs->zones[i]
Comment