Change interval<T>::contains to take const argument
This commit is contained in:
parent
a56bfe3397
commit
ce74c62226
2 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ public:
|
|||
\brief Return true iff this contains b.
|
||||
That is, every value in b is a value of this.
|
||||
*/
|
||||
bool contains(interval<T> & b) const;
|
||||
bool contains(interval<T> const & b) const;
|
||||
|
||||
bool is_empty() const;
|
||||
void set_empty();
|
||||
|
|
|
@ -104,7 +104,7 @@ bool interval<T>::contains_zero() const {
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
bool interval<T>::contains(interval<T> & b) const {
|
||||
bool interval<T>::contains(interval<T> const & b) const {
|
||||
if (!m_lower_inf) {
|
||||
if (b.m_lower_inf)
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue