From: David Wells Date: Fri, 27 Apr 2018 22:31:59 +0000 (-0400) Subject: Explicitly load() an atomic value. X-Git-Tag: v9.0.0-rc1~73^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89af01bd3a8abbf6a47f5f2f0b6035641f85c4d7;p=dealii.git Explicitly load() an atomic value. --- diff --git a/source/base/subscriptor.cc b/source/base/subscriptor.cc index 52c02feaf9..f37673327b 100644 --- a/source/base/subscriptor.cc +++ b/source/base/subscriptor.cc @@ -101,7 +101,7 @@ void Subscriptor::check_no_subscribers () const infostring = ""; AssertNothrow (counter == 0, - ExcInUse (counter, object_info->name(), infostring)); + ExcInUse (counter.load(), object_info->name(), infostring)); } else {