From: Wolfgang Bangerth Date: Sun, 7 May 2023 17:16:00 +0000 (-0600) Subject: Mark constructor as 'explicit'. X-Git-Tag: v9.5.0-rc1~253^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49bb05718b2e8f572619e29dde27489605c9d2e4;p=dealii.git Mark constructor as 'explicit'. --- diff --git a/include/deal.II/base/scope_exit.h b/include/deal.II/base/scope_exit.h index b7fb2d014b..776702a43b 100644 --- a/include/deal.II/base/scope_exit.h +++ b/include/deal.II/base/scope_exit.h @@ -138,7 +138,7 @@ public: * Constructor. Takes a function object that is to be executed at the * place where the current object goes out of scope as argument. */ - ScopeExit(const std::function &exit_function); + explicit ScopeExit(const std::function &exit_function); /** * Copy constructor. These kinds of objects cannot be copied, so the