]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
avoid fmin with unsigned int because it is not defined for ints before c++11
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 Jan 2014 14:05:39 +0000 (14:05 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 Jan 2014 14:05:39 +0000 (14:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@32356 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/event.h

index e27184e3ca9e6f7cb08d53f7be80b6c47442fd6c..1cf7b27e73848a6e9f9b7d697ba26025246830d2 100644 (file)
@@ -202,7 +202,7 @@ namespace Algorithms
 
     const unsigned int n = flags.size();
     const unsigned int m = event.flags.size();
-    const unsigned int n_min = fmin(n, m);
+    const unsigned int n_min = (n<m)?n:m;
 
     // Now, if all_true set in the
     // other, then all must be true

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.