From a7540fdc03e07b81f1a1de54db925a0dc5a56508 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 25 Jan 2002 12:24:06 +0000 Subject: [PATCH] Move definitions into .cc file. git-svn-id: https://svn.dealii.org/trunk@5407 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/parameter_handler.h | 14 ++------------ deal.II/base/source/parameter_handler.cc | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/deal.II/base/include/base/parameter_handler.h b/deal.II/base/include/base/parameter_handler.h index 5562b77154..96cf751f39 100644 --- a/deal.II/base/include/base/parameter_handler.h +++ b/deal.II/base/include/base/parameter_handler.h @@ -168,12 +168,7 @@ namespace Patterns * understands that all values * are allowed. */ - static const int min_int_value = -#ifdef HAVE_STD_NUMERIC_LIMITS - std::numeric_limits::min(); -#else - 1; -#endif + static const int min_int_value; /** * Maximal integer value. If @@ -183,12 +178,7 @@ namespace Patterns * understands that all values * are allowed. */ - static const int max_int_value = -#ifdef HAVE_STD_NUMERIC_LIMITS - std::numeric_limits::max(); -#else - 0; -#endif + static const int max_int_value; /** * Constructor. Bounds can be diff --git a/deal.II/base/source/parameter_handler.cc b/deal.II/base/source/parameter_handler.cc index aa60ca9074..ddfa7e459e 100644 --- a/deal.II/base/source/parameter_handler.cc +++ b/deal.II/base/source/parameter_handler.cc @@ -54,8 +54,19 @@ namespace Patterns - const int Integer::min_int_value; - const int Integer::max_int_value; + const int Integer::min_int_value = +#ifdef HAVE_STD_NUMERIC_LIMITS + std::numeric_limits::min(); +#else + 1; +#endif + + const int Integer::max_int_value = +#ifdef HAVE_STD_NUMERIC_LIMITS + std::numeric_limits::max(); +#else + 0; +#endif Integer::Integer (const int lower_bound, -- 2.39.5