Add const to Solver dump methods and Variable equals.

This commit is contained in:
2024-02-15 21:25:48 -06:00
parent 8b57e0c441
commit 59465d3142
2 changed files with 4 additions and 4 deletions

View File

@@ -145,7 +145,7 @@ public:
/* Dump a representation of the solver internals to stdout.
*/
void dump()
void dump() const
{
debug::dump( m_impl );
}
@@ -153,7 +153,7 @@ public:
/* Dump a representation of the solver internals to a stream.
*/
void dump( std::ostream& out )
void dump( std::ostream& out ) const
{
debug::dump( m_impl, out );
}
@@ -161,7 +161,7 @@ public:
/* Dump a representation of the solver internals to a string.
*/
std::string dumps()
std::string dumps() const
{
return debug::dumps( m_impl );
}

View File

@@ -72,7 +72,7 @@ public:
}
// operator== is used for symbolics
bool equals(const Variable &other)
bool equals(const Variable &other) const
{
return m_data == other.m_data;
}