From: Daniel Arndt Date: Fri, 5 Jul 2024 00:13:32 +0000 (-0400) Subject: Restore comment X-Git-Tag: v9.6.0-rc1~131^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3834917938f2144b7a76c61b12754eaef6266667;p=dealii.git Restore comment --- diff --git a/source/base/parameter_acceptor.cc b/source/base/parameter_acceptor.cc index 7610532d8e..bd3bbae13b 100644 --- a/source/base/parameter_acceptor.cc +++ b/source/base/parameter_acceptor.cc @@ -59,6 +59,9 @@ ParameterAcceptor::ParameterAcceptor(const std::string &name) ParameterAcceptor::~ParameterAcceptor() { std::lock_guard l(class_list_mutex); + // Notice that it is possible that the class is no longer in the static list. + // This happens when the clear() method has been called. erase() does the + // righy thing anyway by only removing this class if it's still in the list. class_list.erase(this); }