]> https://gitweb.dealii.org/ - dealii.git/commitdiff
wrong ostream replaced and std:: before ends and endl
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 14 Dec 2001 13:39:02 +0000 (13:39 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 14 Dec 2001 13:39:02 +0000 (13:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@5335 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_matrix_array.h

index 4b3fe35011c62517a674a74e0ce56042dadc0f73..e3c5d6636551c2f387ae7bd6af57bf504c7d337b 100644 (file)
@@ -493,7 +493,7 @@ BlockMatrixArray<MATRIX>::print_latex (ostream& out) const
 {
   out << "\\begin{array}{"
       << string(n_block_cols(), 'c')
-      << "}" << endl;
+      << "}" << std::endl;
 
   vector2d<string> array(n_block_rows(), n_block_cols());
   typedef map<const MATRIX*, string> NameMap;
@@ -512,7 +512,7 @@ BlockMatrixArray<MATRIX>::print_latex (ostream& out) const
              pair<const MATRIX*, string> (m->matrix, string("M")));
          STRINGSTREAM stream;
          stream << matrix_number++;
-         stream << ends;
+         stream << std::ends;
          x.first->second += stream.str();
        }
 
@@ -522,16 +522,16 @@ BlockMatrixArray<MATRIX>::print_latex (ostream& out) const
       stream << matrix_names.find(m->matrix)->second;
       if (m->transpose)
        stream << "^T";
-      stream << ends;
+      stream << std::ends;
       array(m->row, m->col) += stream.str();
     }
   for (unsigned int i=0;i<n_block_rows();++i)
     for (unsigned int j=0;j<n_block_cols();++j)
-      cout << array(i,j) << '\t'
+      out << array(i,j) << '\t'
           << ((j==n_block_cols()-1)
               ? "\\\\\n"
               : "&\t");
-  cout << "\\end{array}" << endl;
+  out << "\\end{array}" << std::endl;
 }
 
 //----------------------------------------------------------------------//

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.