Skip to content

Commit 70adade

Browse files
committed
delete const on entitymaps
1 parent d126ad4 commit 70adade

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/rampl.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ RParameterEntity RAMPL::getParameter(std::string name) const {
491491
*/
492492
Rcpp::List RAMPL::getVariables() const {
493493
Rcpp::List list;
494-
const ampl::EntityMap<ampl::Variable> map = _impl.getVariables();
494+
ampl::EntityMap<ampl::Variable> map = _impl.getVariables();
495495
ampl::EntityMap<ampl::Variable>::iterator begin = map.begin();
496496
ampl::EntityMap<ampl::Variable>::iterator end = map.end();
497497
for(ampl::EntityMap<ampl::Variable>::iterator itr = begin; itr != end; itr++){
@@ -508,7 +508,7 @@ Rcpp::List RAMPL::getVariables() const {
508508
*/
509509
Rcpp::List RAMPL::getConstraints() const {
510510
Rcpp::List list;
511-
const ampl::EntityMap<ampl::Constraint> map = _impl.getConstraints();
511+
ampl::EntityMap<ampl::Constraint> map = _impl.getConstraints();
512512
ampl::EntityMap<ampl::Constraint>::iterator begin = map.begin();
513513
ampl::EntityMap<ampl::Constraint>::iterator end = map.end();
514514
for(ampl::EntityMap<ampl::Constraint>::iterator itr = begin; itr != end; itr++){
@@ -525,7 +525,7 @@ Rcpp::List RAMPL::getConstraints() const {
525525
*/
526526
Rcpp::List RAMPL::getObjectives() const {
527527
Rcpp::List list;
528-
const ampl::EntityMap<ampl::Objective> map = _impl.getObjectives();
528+
ampl::EntityMap<ampl::Objective> map = _impl.getObjectives();
529529
ampl::EntityMap<ampl::Objective>::iterator begin = map.begin();
530530
ampl::EntityMap<ampl::Objective>::iterator end = map.end();
531531
for(ampl::EntityMap<ampl::Objective>::iterator itr = begin; itr != end; itr++){
@@ -542,7 +542,7 @@ Rcpp::List RAMPL::getObjectives() const {
542542
*/
543543
Rcpp::List RAMPL::getSets() const {
544544
Rcpp::List list;
545-
const ampl::EntityMap<ampl::Set> map = _impl.getSets();
545+
ampl::EntityMap<ampl::Set> map = _impl.getSets();
546546
ampl::EntityMap<ampl::Set>::iterator begin = map.begin();
547547
ampl::EntityMap<ampl::Set>::iterator end = map.end();
548548
for(ampl::EntityMap<ampl::Set>::iterator itr = begin; itr != end; itr++){
@@ -559,7 +559,7 @@ Rcpp::List RAMPL::getSets() const {
559559
*/
560560
Rcpp::List RAMPL::getParameters() const {
561561
Rcpp::List list;
562-
const ampl::EntityMap<ampl::Parameter> map = _impl.getParameters();
562+
ampl::EntityMap<ampl::Parameter> map = _impl.getParameters();
563563
ampl::EntityMap<ampl::Parameter>::iterator begin = map.begin();
564564
ampl::EntityMap<ampl::Parameter>::iterator end = map.end();
565565
for(ampl::EntityMap<ampl::Parameter>::iterator itr = begin; itr != end; itr++){

0 commit comments

Comments
 (0)