]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
allow writing to Logstream
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Sep 2012 08:07:52 +0000 (08:07 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Sep 2012 08:07:52 +0000 (08:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@26773 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/grid/tria_iterator.h

index 81144b118540eae981d42ce564effe3ba368adad..61362de82a3e19a60ad9ac9fa4fb595150bb08ef 100644 (file)
@@ -539,10 +539,12 @@ class TriaRawIterator : public std::iterator<std::bidirectional_iterator_tag,Acc
     IteratorState::IteratorStates state () const;
 
                                      /**
-                                      * Print the iterator to @p out. The
+                                      * Print the iterator to a stream
+                                      * <code>out</code>. The
                                       * format is like <tt>level.index</tt>.
                                       */
-    void print (std::ostream &out) const;
+    template <class STREAM>
+    void print (STREAM& out) const;
 
 
                                      /**
@@ -1222,9 +1224,10 @@ TriaRawIterator<Accessor>::operator -- ()
 
 
 template <typename Accessor>
+template <class STREAM>
 inline
 void
-TriaRawIterator<Accessor>::print (std::ostream &out) const
+TriaRawIterator<Accessor>::print (STREAM& out) const
 {
   if (Accessor::structure_dimension==Accessor::dimension)
     out << accessor.level() << "." << accessor.index();

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.