]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use <ostream> over <iostream> when that is available.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 25 Jan 2002 12:35:58 +0000 (12:35 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 25 Jan 2002 12:35:58 +0000 (12:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@5412 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/tensor_base.h

index b7aed9105e72c2e36add7b44ebb470c34bee47a7..b991d2787caa4fac54ad3a5a4537f44edf0cb41f 100644 (file)
 // everytime we use a point.
 
 
-//TODO:[WB] (compiler) Change <iostream> to <ostream> when that becomes available
-
 #include <base/config.h>
 #include <base/exceptions.h>
-#include <iostream>
 #include <vector>
 
+// 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 <typename number> class Vector;
 template <int dim> class Point;
 

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.