/*---------------------------- tria-iterator.h ---------------------------*/
-//TODO:[WB] (compiler) Change <iostream> to <ostream> when that becomes available
#include <base/config.h>
-#include <iterator>
-#include <iostream>
#include <base/exceptions.h>
#include <base/point.h>
#include <grid/tria_iterator_base.h>
+#include <iterator>
+
+// we only need output streams, but older compilers did not provide
+// them in a separate include file
+#ifdef HAVE_STD_OSTREAM_HEADER
+# include <ostream>
+#else
+# include <iostream>
+#endif
+
template <int dim> class Triangulation;
// note: in non-debug mode, i.e. with optimizations, the file
#include <lac/block_vector.h>
#include <lac/sparse_matrix.h>
#include <lac/block_sparse_matrix.h>
-#include <iostream>
+
#include <algorithm>
#include <numeric>
#include <set>
+// we only need output streams, but older compilers did not provide
+// them in a separate include file
+#ifdef HAVE_STD_OSTREAM_HEADER
+# include <ostream>
+#else
+# include <iostream>
+#endif
inline
<h3>General</h3>
<ol>
+ <li> <p> New: configuration detects whether the compiler has the
+ include file <code><ostream></code>. Most files in the
+ library then include this file over
+ <code><iostream></code> to save compile time.
+ <br>
+ (WB 2002/01/25)
+ </p>
+
<li> <p> Fixed: All example and test programs as well as a number of
large applications have been checked against the memory checker
"purify". Only three memory leaks were found and fixed. We
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