]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix some html errors
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 23 Oct 2006 22:06:02 +0000 (22:06 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 23 Oct 2006 22:06:02 +0000 (22:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@14058 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/faq.html

index 6109458f83a3d1fde3535e68d7d7a5057ee2105f..33b95522c66ce000633561b907367870063acd57 100644 (file)
   c++/616 in October 2000, and it was fixed a few weeks later, but apparently
   did not make it to Red Hat's version). The problem manifests itself in
   situations like this:
-  <code>
-    <pre>
-      template &lt;int dim&gt; struct Function {};
-      template &lt;int dim&gt; struct RHS : Function&lt;dim&gt; { RHS() {}; };
-
-      template &lt;int dim&gt; void f () {
-        const RHS&lt;dim&gt; rhs;
-      };
-      template void f&lt;1&gt; ();
-    </pre>
-  </code>
-  Here, the compiler reports
-  <code>
-    <pre>
-      x.cc: In function `void f () [with int dim = 1]':
-      x.cc:7:   instantiated from here
-      x.cc:5: uninitialized const `rhs'
-    </pre>
-  </code>
+  </p>
+  <pre>
+    template &lt;int dim&gt; struct Function {};
+    template &lt;int dim&gt; struct RHS : Function&lt;dim&gt; { RHS() {}; };
+
+    template &lt;int dim&gt; void f ()
+    {
+      const RHS&lt;dim&gt; rhs;
+    };
+    template void f&lt;1&gt; ();
+  </pre>
+   
+  <p>Here, the compiler reports</p>
+  <pre>
+    x.cc: In function `void f () [with int dim = 1]':
+    x.cc:7:   instantiated from here
+    x.cc:5: uninitialized const `rhs'
+  </pre>
+  <p>
   which is clearly bogus since <code>rhs</code> uses the default constructor of
   the class. Unfortunately, there is no way of working around the bug short of
   removing the constness of the variable. We did not want to do this, since

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.