]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compilation with C++11
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 26 Aug 2013 09:07:10 +0000 (09:07 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 26 Aug 2013 09:07:10 +0000 (09:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@30493 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/work_stream.h

index 370796a7e14f9e9950b25d21cb09429ebc7adb88..6fa10464db1ef7b44496221fc57e6d69db117031 100644 (file)
@@ -530,7 +530,7 @@ namespace WorkStream
           {
             try
               {
-                if (worker.empty() == false)
+                if (worker)
                   worker (current_item->work_items[i],
                           *scratch_data,
                           current_item->copy_datas[i]);
@@ -634,7 +634,7 @@ namespace WorkStream
           {
             try
               {
-                if (copier.empty() == false)
+                if (copier)
                   copier (current_item->copy_datas[i]);
               }
             catch (const std::exception &exc)

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.