]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make this compile with non-gcc compilers as well.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 May 2001 12:44:44 +0000 (12:44 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 May 2001 12:44:44 +0000 (12:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@4635 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/histogram.cc

index 47a097d96cb0a2b3f87fcf80714abe80af88f217..bbe5d7d0153ed654c50ad36aec9676a68d4ec209 100644 (file)
@@ -90,7 +90,7 @@ void Histogram::evaluate (const typename std::vector<Vector<number> > &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<number>
 #else
                                     &Histogram::template logarithmic_less<number>
@@ -99,7 +99,7 @@ void Histogram::evaluate (const typename std::vector<Vector<number> > &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<number>
 #else
                                     &Histogram::template logarithmic_less<number>
@@ -112,14 +112,14 @@ void Histogram::evaluate (const typename std::vector<Vector<number> > &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<number>
 #else
                                              &Histogram::template logarithmic_less<number>
 #endif
                                 ),
 
-#if (__GNUC__==2) && (__GNUC_MINOR__ < 95)
+#if (__GNUC__-0==2) && (__GNUC_MINOR__-0 < 95)
                                 &logarithmic_less<number>
 #else
                                 &Histogram::template logarithmic_less<number>
@@ -129,14 +129,14 @@ void Histogram::evaluate (const typename std::vector<Vector<number> > &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<number>
 #else
                                              &Histogram::template logarithmic_less<number>
 #endif
                                 ),
 
-#if (__GNUC__==2) && (__GNUC_MINOR__ < 95)
+#if (__GNUC__-0==2) && (__GNUC_MINOR__-0 < 95)
                                 &logarithmic_less<number>
 #else
                                 &Histogram::template logarithmic_less<number>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.