]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix TableHandler::write_tex to take an ostream, instead of an ofstream
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 Jul 2006 22:03:26 +0000 (22:03 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 Jul 2006 22:03:26 +0000 (22:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@13480 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/table_handler.h
deal.II/base/source/table_handler.cc
deal.II/doc/news/changes.html

index b27f60d900486883e9d5386230a1e851312897a6..df31b05732cb9163a95eba8d0e0874612308a505 100644 (file)
@@ -339,7 +339,7 @@ class TableHandler
                                       * file using a command like
                                       * "\input{table_file}".
                                       */
-    void write_tex (std::ofstream &file, const bool with_header=true) const;
+    void write_tex (std::ostream &file, const bool with_header=true) const;
 
                                     /** @addtogroup Exceptions
                                      * @{ */
index 46610ddd795a7635011bbcc65a088790be8e1d0f..95029b66b336cc0c60731d039b987b1638c4ff31 100644 (file)
@@ -337,7 +337,7 @@ void TableHandler::write_text(std::ostream &out) const
 }
 
 
-void TableHandler::write_tex (std::ofstream &out, const bool with_header) const
+void TableHandler::write_tex (std::ostream &out, const bool with_header) const
 {
   AssertThrow (out, ExcIO());
   if (with_header)
index 381ab0b664a97af193fb34efdf3823c44ac4595f..1d98958f8b982f346e18916ffd452c3f40b4459a 100644 (file)
@@ -343,6 +343,14 @@ inconvenience this causes.
 <h3>base</h3>
 
 <ol>
+  <li> <p> Fixed: The <code>TableHandler::write_tex</code>
+       accidentally took a parameter of type
+       <code>std::ofstream</code> instead of <code>std::ostream</code>
+       and could therefore only write to files, not to other kinds of
+       streams. This is now fixed.
+       <br>
+       (WB 2006/07/28)
+       </p>
 
   <li> <p> New: <code class="class">GeometryInfo</code> offers several new functions,
   <code>is_inside_unit_cell</code> with an epsilon parameter to specify allowable

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.