Array::Array(const Array &obj) { for (KeyValueVector::const_iterator it = obj.vector.begin(); it != obj.vector.end(); ++it) { ValueBase *v = *it; push(v); const std::string& n = v->getName(); if (n.length()) updateIndex(n, v); } #if DBG fprintf(stderr, "%s(copy) %lu\n", __func__, vector.size()); #endif }