From 7e14eed15ce8191ee62e20bc8f94431cd11e9dd3 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 25 Jan 2002 13:03:00 +0000 Subject: [PATCH] Use over when that is available. git-svn-id: https://svn.dealii.org/trunk@5419 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/grid/tria_iterator.h | 13 ++++++++++--- deal.II/deal.II/source/dofs/dof_constraints.cc | 9 ++++++++- deal.II/doc/news/2001/c-3-2.html | 8 ++++++++ 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/deal.II/deal.II/include/grid/tria_iterator.h b/deal.II/deal.II/include/grid/tria_iterator.h index 4b53afb886..1bceacd45e 100644 --- a/deal.II/deal.II/include/grid/tria_iterator.h +++ b/deal.II/deal.II/include/grid/tria_iterator.h @@ -17,14 +17,21 @@ /*---------------------------- tria-iterator.h ---------------------------*/ -//TODO:[WB] (compiler) Change to when that becomes available #include -#include -#include #include #include #include +#include + +// we only need output streams, but older compilers did not provide +// them in a separate include file +#ifdef HAVE_STD_OSTREAM_HEADER +# include +#else +# include +#endif + template class Triangulation; // note: in non-debug mode, i.e. with optimizations, the file diff --git a/deal.II/deal.II/source/dofs/dof_constraints.cc b/deal.II/deal.II/source/dofs/dof_constraints.cc index e265db4714..2f69f6d93b 100644 --- a/deal.II/deal.II/source/dofs/dof_constraints.cc +++ b/deal.II/deal.II/source/dofs/dof_constraints.cc @@ -22,11 +22,18 @@ #include #include #include -#include + #include #include #include +// we only need output streams, but older compilers did not provide +// them in a separate include file +#ifdef HAVE_STD_OSTREAM_HEADER +# include +#else +# include +#endif inline diff --git a/deal.II/doc/news/2001/c-3-2.html b/deal.II/doc/news/2001/c-3-2.html index 89974be9d3..12ef8af464 100644 --- a/deal.II/doc/news/2001/c-3-2.html +++ b/deal.II/doc/news/2001/c-3-2.html @@ -26,6 +26,14 @@ documentation, etc.

General

    +
  1. New: configuration detects whether the compiler has the + include file <ostream>. Most files in the + library then include this file over + <iostream> to save compile time. +
    + (WB 2002/01/25) +

    +
  2. 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 -- 2.39.5