Skip to content
Snippets Groups Projects
Commit 7cbd4aac authored by Jaime Tarrasó Martínez's avatar Jaime Tarrasó Martínez
Browse files

Make the id() function constant

parent bf3e464f
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ class ConstraintBase : public NodeBase, public std::enable_shared_from_this<Cons ...@@ -54,7 +54,7 @@ class ConstraintBase : public NodeBase, public std::enable_shared_from_this<Cons
virtual ~ConstraintBase(); virtual ~ConstraintBase();
void remove(); void remove();
unsigned int id(); unsigned int id() const;
/** \brief Returns the constraint type /** \brief Returns the constraint type
**/ **/
...@@ -164,7 +164,7 @@ inline wolf::ProblemPtr ConstraintBase::getProblem() ...@@ -164,7 +164,7 @@ inline wolf::ProblemPtr ConstraintBase::getProblem()
return prb; return prb;
} }
inline unsigned int ConstraintBase::id() inline unsigned int ConstraintBase::id() const
{ {
return constraint_id_; return constraint_id_;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment