From 49bb05718b2e8f572619e29dde27489605c9d2e4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 7 May 2023 11:16:00 -0600 Subject: [PATCH] Mark constructor as 'explicit'. --- include/deal.II/base/scope_exit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5