for(const Link &l: links)
if(l.get_index()==index)
return l;
- throw key_error(typeid(list<Link>));
+ throw key_error(index);
}
const Armature::Link &Armature::get_link(const string &name) const
for(const Link &l: links)
if(l.get_name()==name)
return l;
- throw key_error(typeid(list<Link>));
+ throw key_error(name);
}
unsigned Armature::get_max_link_index() const