From feee7fef4ca76437d323ea101942e647115aa4c1 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 17 May 2001 12:44:44 +0000 Subject: [PATCH] Make this compile with non-gcc compilers as well. git-svn-id: https://svn.dealii.org/trunk@4635 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/histogram.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deal.II/deal.II/source/numerics/histogram.cc b/deal.II/deal.II/source/numerics/histogram.cc index 47a097d96c..bbe5d7d015 100644 --- a/deal.II/deal.II/source/numerics/histogram.cc +++ b/deal.II/deal.II/source/numerics/histogram.cc @@ -90,7 +90,7 @@ void Histogram::evaluate (const typename std::vector > &values, case logarithmic: min_value = *std::min_element(values[0].begin(), values[0].end(), -#if (__GNUC__==2) && (__GNUC_MINOR__ < 95) +#if (__GNUC__-0==2) && (__GNUC_MINOR__-0 < 95) &logarithmic_less #else &Histogram::template logarithmic_less @@ -99,7 +99,7 @@ void Histogram::evaluate (const typename std::vector > &values, max_value = *std::max_element(values[0].begin(), values[0].end(), -#if (__GNUC__==2) && (__GNUC_MINOR__ < 95) +#if (__GNUC__-0==2) && (__GNUC_MINOR__-0 < 95) &logarithmic_less #else &Histogram::template logarithmic_less @@ -112,14 +112,14 @@ void Histogram::evaluate (const typename std::vector > &values, min_value = std::min (min_value, *std::min_element(values[i].begin(), values[i].end(), -#if (__GNUC__==2) && (__GNUC_MINOR__ < 95) +#if (__GNUC__-0==2) && (__GNUC_MINOR__-0 < 95) &logarithmic_less #else &Histogram::template logarithmic_less #endif ), -#if (__GNUC__==2) && (__GNUC_MINOR__ < 95) +#if (__GNUC__-0==2) && (__GNUC_MINOR__-0 < 95) &logarithmic_less #else &Histogram::template logarithmic_less @@ -129,14 +129,14 @@ void Histogram::evaluate (const typename std::vector > &values, max_value = std::max (max_value, *std::max_element(values[i].begin(), values[i].end(), -#if (__GNUC__==2) && (__GNUC_MINOR__ < 95) +#if (__GNUC__-0==2) && (__GNUC_MINOR__-0 < 95) &logarithmic_less #else &Histogram::template logarithmic_less #endif ), -#if (__GNUC__==2) && (__GNUC_MINOR__ < 95) +#if (__GNUC__-0==2) && (__GNUC_MINOR__-0 < 95) &logarithmic_less #else &Histogram::template logarithmic_less -- 2.39.5