implement PointerWrap::Do(std::map<unsigned int, T>)

This commit is contained in:
nitsuja 2011-12-19 15:05:35 -08:00 committed by skidau
parent aa674a65f1
commit 152351d96c
1 changed files with 2 additions and 8 deletions

View File

@ -77,12 +77,6 @@ public:
template<class T>
void Do(std::map<unsigned int, T> &x)
{
// TODO
PanicAlert("Do(map<>) does not yet work.");
}
void Do(std::map<unsigned int, std::string> &x)
{
unsigned int number = (unsigned int)x.size();
Do(number);
@ -94,7 +88,7 @@ public:
{
unsigned int first = 0;
Do(first);
std::string second;
T second;
Do(second);
x[first] = second;
--number;
@ -105,7 +99,7 @@ public:
case MODE_MEASURE:
case MODE_VERIFY:
{
std::map<unsigned int, std::string>::iterator itr = x.begin();
std::map<unsigned int, T>::iterator itr = x.begin();
while (number > 0)
{
Do(itr->first);