]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Two small changes to allow compilation with present gcc3 snapshots.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Apr 2001 13:02:55 +0000 (13:02 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Apr 2001 13:02:55 +0000 (13:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@4360 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 21843f725bee3f1dc86bab2504dbfc2de715cf72..cd9c44406ce3fd12e1fe48fc44e69fe42261334c 100644 (file)
@@ -311,7 +311,8 @@ LogStream::operator<< (std::ostream& (*p) (std::ostream&))
                                   // next check whether this is the
                                   // @p{endl} manipulator, and if so
                                   // set a flag
-  if (p == &std::endl)
+  std::ostream & (* const p_endl) (std::ostream&) = &std::endl;
+  if (p == p_endl)
     was_endl = true;
 
   return *this;
index 6b3de8243728f9387efb0c29c1abcf1ba282ddfb..fe4d70d116f5d119c1c40c67a13bc3dc2d03fd4a 100644 (file)
@@ -78,9 +78,11 @@ class Tensor<1,dim>
                                      *
                                      * Avoid warning about zero-sized
                                      * array for @p{dim==0} by
-                                     * choosing lunatic value.
+                                     * choosing lunatic value that is
+                                     * likely to overflow memory
+                                     * limits.
                                      */
-    typedef double array_type[(dim!=0) ? dim : (unsigned int)(-1)];
+    typedef double array_type[(dim!=0) ? dim : 1000000000];
     
                                     /**
                                      * Constructor. Initialize all entries

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.