Fix default constructor of interval<T> to call reset method to assign 0

This commit is contained in:
Soonho Kong 2013-08-13 20:07:20 -07:00
parent 5f143f164e
commit d5f2d6b26f

View file

@ -43,8 +43,10 @@ interval<T> & interval<T>::operator=(interval && n) {
template<typename T>
interval<T>::interval():
m_lower(0),
m_upper(0) {
m_lower(),
m_upper() {
numeric_traits<T>::reset(m_lower);
numeric_traits<T>::reset(m_upper);
m_lower_inf = true;
m_lower_open = true;
m_upper_inf = true;