]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark constructor as 'explicit'. 15184/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 7 May 2023 17:16:00 +0000 (11:16 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 7 May 2023 17:16:00 +0000 (11:16 -0600)
include/deal.II/base/scope_exit.h

index b7fb2d014b27e1f549b43bcade82a129768f6365..776702a43bb89c2330821c21860c9f3e03ea4ba8 100644 (file)
@@ -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<void()> &exit_function);
+  explicit ScopeExit(const std::function<void()> &exit_function);
 
   /**
    * Copy constructor. These kinds of objects cannot be copied, so the

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.