]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove compatability with EGCS 1.1.
authorDavid Wells <drwells@vt.edu>
Sat, 25 Apr 2015 15:58:58 +0000 (11:58 -0400)
committerDavid Wells <drwells@vt.edu>
Sun, 26 Apr 2015 16:46:55 +0000 (12:46 -0400)
Chances are GCC has been patched in the last sixteen years to fix this
issue.

include/deal.II/grid/tria_iterator.templates.h

index c7eeb418f070de4c1c04b0ccb77bc743125a27b4..057121ca424947e30d147ba95caf446fc4dc6bd1 100644 (file)
@@ -132,18 +132,7 @@ inline
 bool
 TriaRawIterator<Accessor>::operator != (const TriaRawIterator<Accessor> &i) const
 {
-  // Note that at times, there is a problem
-  // with egcs 1.1 that makes it choose
-  // the global STL operator != (which
-  // does only !(a==b)) over the member
-  // function one, which then results in an
-  // error because the operator == of
-  // the accessor class is
-  // not made public. Strange... don't know
-  // whose fault it is.
-  //
-  // Work around the problem this way:
-  return accessor.operator != (i.accessor);
+  return not (*this == i);
 }
 
 

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.