]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Disambiguate comparison with 0 for gcc 4.5.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Apr 2010 03:58:59 +0000 (03:58 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Apr 2010 03:58:59 +0000 (03:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@20940 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/thread_management.h

index 6070b076fdacd9f8cc6fff406c4b35df887969aa..b74cd6e1b6411b5b227a71a0aa27d9382839892d 100644 (file)
@@ -4083,7 +4083,9 @@ namespace Threads
                                         */
       void join () const
        {
-         AssertThrow (task_descriptor != 0, ExcNoTask());
+         AssertThrow (task_descriptor !=
+                      std_cxx1x::shared_ptr<internal::TaskDescriptor<RT> >(),
+                      ExcNoTask());
          task_descriptor->join ();
        }
 
@@ -4113,7 +4115,9 @@ namespace Threads
                                         */
       bool operator == (const Task &t)
        {
-         AssertThrow (task_descriptor != 0, ExcNoTask());
+         AssertThrow (task_descriptor !=
+                      std_cxx1x::shared_ptr<internal::TaskDescriptor<RT> >(),
+                      ExcNoTask());
          return task_descriptor == t.task_descriptor;
        }
 

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.