File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ SEXP RBasicEntity<T, TW>::getScalar() const {
228228*/
229229template <class T , class TW >
230230SEXP 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 {
245245template <class T , class TW >
246246Rcpp::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;
You can’t perform that action at this time.
0 commit comments