aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@gmail.com>2012-12-13 18:07:22 +0800
committerastrojhgu <astrojhgu@gmail.com>2012-12-13 18:07:22 +0800
commitd94df863f7b0d2734ff9f7780bdc2ba731ec2ad2 (patch)
treec37d0dcdc23b33cfe7ba8e959662eac08555abea
parent7c7dbffbb17f143607fb8ec0388c6bdb6bcea160 (diff)
downloadopt-utilities-d94df863f7b0d2734ff9f7780bdc2ba731ec2ad2.tar.bz2
modified: core/fitter.hpp
-rw-r--r--core/fitter.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fitter.hpp b/core/fitter.hpp
index 4f19684..cc4da3b 100644
--- a/core/fitter.hpp
+++ b/core/fitter.hpp
@@ -386,8 +386,8 @@ namespace opt_utilities
*/
param_info(const Tstr& _name,
const typename element_type_trait<Tp>::element_type& _v,
- const typename element_type_trait<Tp>::element_type& _l=0,
- const typename element_type_trait<Tp>::element_type& _u=0,
+ const typename element_type_trait<Tp>::element_type& _l=-std::numeric_limits<typename element_type_trait<Tp>::element_type>::max(),
+ const typename element_type_trait<Tp>::element_type& _u=std::numeric_limits<typename element_type_trait<Tp>::element_type>::max(),
const Tstr& desc=Tstr())
:name(_name),value(_v),lower_limit(_l),
upper_limit(_u),description(desc)