From cf4f90cceacecee87be359b94595662359d027fb Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Fri, 30 Apr 2010 11:58:17 -0400 Subject: fix #116 and remove debug cout's --- Eigen/src/Core/IO.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'Eigen/src/Core/IO.h') diff --git a/Eigen/src/Core/IO.h b/Eigen/src/Core/IO.h index 853506288..3da92d21a 100644 --- a/Eigen/src/Core/IO.h +++ b/Eigen/src/Core/IO.h @@ -126,8 +126,8 @@ DenseBase::format(const IOFormat& fmt) const return WithFormat(derived(), fmt); } -template -struct ei_significant_decimals_impl +template +struct ei_significant_decimals_default_impl { typedef typename NumTraits::Real RealScalar; static inline int run() @@ -136,6 +136,20 @@ struct ei_significant_decimals_impl } }; +template +struct ei_significant_decimals_default_impl +{ + static inline int run() + { + return 0; + } +}; + +template +struct ei_significant_decimals_impl + : ei_significant_decimals_default_impl::IsInteger> +{}; + /** \internal * print the matrix \a _m to the output stream \a s using the output format \a fmt */ template -- cgit v1.2.3