From 89af01bd3a8abbf6a47f5f2f0b6035641f85c4d7 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 27 Apr 2018 18:31:59 -0400 Subject: [PATCH] Explicitly load() an atomic value. --- source/base/subscriptor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5