]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Flush after endl
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 27 Aug 1998 14:30:52 +0000 (14:30 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 27 Aug 1998 14:30:52 +0000 (14:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@528 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/logstream.h

index a8d0bcc42aadff70c21b4c4a70f74820212503da..8e4b96915c4bf8ac78e797e652526dc595828827 100644 (file)
@@ -160,7 +160,8 @@ operator << (LogStream& s, const char* c)
 
 inline void endl(LogStream& s)
 {
-  writestuff(s,"\n");
+  ostream& (*p) (ostream &) = &endl;
+  writestuff(s, p);
   s.was_endl = 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.