}
-vector<TypeDescription> Interpreter::typeDescriptions;
+vector<TypeDescription> TypeDescription::typeDescriptions;
TypeDescription &TypeDescription::CreateOrGet(const std::string &name) {
- for (vector<TypeDescription>::const_iterator i(typeDescriptions.begin()), end(typeDescriptions.end()); i != end; ++i) {
+ for (vector<TypeDescription>::iterator i(typeDescriptions.begin()), end(typeDescriptions.end()); i != end; ++i) {
if (i->name == name) {
return *i;
}
}
const TypeDescription &TypeDescription::Get(int id) {
- assert(id >= 0 && id < typeDescriptions.size());
+ assert(id >= 0 && id < int(typeDescriptions.size()));
return typeDescriptions[id];
}