From: Wolfgang Bangerth Date: Thu, 17 May 2001 12:44:44 +0000 (+0000) Subject: Make this compile with non-gcc compilers as well. X-Git-Tag: v8.0.0~19156 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca72cabab894c7e64650127cf50d27e9028f9bd3;p=dealii.git Make this compile with non-gcc compilers as well. git-svn-id: https://svn.dealii.org/trunk@4635 0785d39b-7218-0410-832d-ea1e28bc413d --- 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