Skip to content

Commit 56aec94

Browse files
committed
change typename to auto
1 parent 70adade commit 56aec94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rbasicentity.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ SEXP RBasicEntity<T, TW>::getScalar() const {
228228
*/
229229
template <class T, class TW>
230230
SEXP RBasicEntity<T, TW>::find(Rcpp::List index) const {
231-
typename ampl::BasicEntity<T>::iterator it = _impl.find(list2tuple(index));
231+
auto it = _impl.find(list2tuple(index));
232232
if(it != _impl.end()) {
233233
return Rcpp::wrap(TW(it->second));
234234
} else {
@@ -245,7 +245,7 @@ SEXP RBasicEntity<T, TW>::find(Rcpp::List index) const {
245245
template <class T, class TW>
246246
Rcpp::List RBasicEntity<T, TW>::getInstances() const {
247247
Rcpp::List list;
248-
for(typename ampl::BasicEntity<T>::iterator it = _impl.begin(); it != _impl.end(); it++) {
248+
for(auto it = _impl.begin(); it != _impl.end(); it++) {
249249
list[it->second.name()] = TW(it->second);
250250
}
251251
return list;

0 commit comments

Comments
 (0)