From: Wolfgang Bangerth Date: Fri, 12 Nov 2021 18:04:33 +0000 (-0700) Subject: Minor cleanups in thread_management.h. X-Git-Tag: v9.4.0-rc1~841^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12938%2Fhead;p=dealii.git Minor cleanups in thread_management.h. --- diff --git a/include/deal.II/base/thread_management.h b/include/deal.II/base/thread_management.h index b15fd6e1c5..f034fc7b3d 100644 --- a/include/deal.II/base/thread_management.h +++ b/include/deal.II/base/thread_management.h @@ -33,7 +33,6 @@ # include # include # include -# include # include # include @@ -919,10 +918,8 @@ namespace Threads void join_all() const { - for (typename std::list>::const_iterator t = threads.begin(); - t != threads.end(); - ++t) - t->join(); + for (auto &t : threads) + t.join(); } private: