Skip to content

Commit

Permalink
delete const modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgen-lentz committed Oct 12, 2024
1 parent 0c98377 commit 2d61524
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/rset_instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ std::string RSetInstance::toString() const {
:return: The number of tuples in the set.
*/
int RSetInstance::size() const {
int RSetInstance::size() {
return _impl.size();
}

Expand All @@ -51,7 +51,7 @@ int RSetInstance::size() const {
:return: The list of members of the set.
*/
std::vector<Rcpp::List> RSetInstance::members() const {
std::vector<Rcpp::List> RSetInstance::members() {
std::vector<Rcpp::List> members;
ampl::SetInstance::MemberRange range = _impl.members();
for(ampl::SetInstance::MemberRange::iterator it = range.begin(); it != range.end(); it++){
Expand Down
4 changes: 2 additions & 2 deletions src/rset_instance.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class RSetInstance {
std::string name() const;
std::string toString() const;
//int arity() const; FIXME: ?
int size() const;
std::vector<Rcpp::List> members() const;
int size();
std::vector<Rcpp::List> members();
bool contains(Rcpp::List tuple) const;
Rcpp::DataFrame getValues() const;
void setValues(SEXP values);
Expand Down

0 comments on commit 2d61524

Please sign in to comment.