]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Explicitly load() an atomic value. 6368/head
authorDavid Wells <wellsd2@rpi.edu>
Fri, 27 Apr 2018 22:31:59 +0000 (18:31 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 28 Apr 2018 14:52:25 +0000 (10:52 -0400)
source/base/subscriptor.cc

index 52c02feaf9c413ec89b5ef8bd3dd3ffb0d433430..f37673327b514d590ee06c22a3e3ab1f3f96013e 100644 (file)
@@ -101,7 +101,7 @@ void Subscriptor::check_no_subscribers () const
             infostring = "<none>";
 
           AssertNothrow (counter == 0,
-                         ExcInUse (counter, object_info->name(), infostring));
+                         ExcInUse (counter.load(), object_info->name(), infostring));
         }
       else
         {

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.