Fixed incorrect iterator type

release/4.3a0
Richard Roberts 2012-06-30 01:45:06 +00:00
parent f91ec894b3
commit 5431d74573
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ namespace gtsam {
/* ************************************************************************* */
void Values::insert(Key j, const Value& val) {
Key key = j; // Non-const duplicate to deal with non-const insert argument
std::pair<iterator,bool> insertResult = values_.insert(key, val.clone_());
std::pair<KeyValueMap::iterator,bool> insertResult = values_.insert(key, val.clone_());
if(!insertResult.second)
throw ValuesKeyAlreadyExists(j);
}