Fix default constructor of interval<T> to call reset method to assign 0
This commit is contained in:
parent
5f143f164e
commit
d5f2d6b26f
1 changed files with 4 additions and 2 deletions
|
@ -43,8 +43,10 @@ interval<T> & interval<T>::operator=(interval && n) {
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
interval<T>::interval():
|
interval<T>::interval():
|
||||||
m_lower(0),
|
m_lower(),
|
||||||
m_upper(0) {
|
m_upper() {
|
||||||
|
numeric_traits<T>::reset(m_lower);
|
||||||
|
numeric_traits<T>::reset(m_upper);
|
||||||
m_lower_inf = true;
|
m_lower_inf = true;
|
||||||
m_lower_open = true;
|
m_lower_open = true;
|
||||||
m_upper_inf = true;
|
m_upper_inf = true;
|
||||||
|
|
Loading…
Reference in a new issue