mark constructors explicit

This commit is contained in:
Arne Morten Kvarving committed 2025-01-21 14:41:17 +01:00
1 parent 990c3f0248
commit 6d964c1370
145 files changed
+184 -181

No files matched your search

+1 -1
View File
@@ -164,7 +164,7 @@ class Tutorial1Problem
public:
//! The constructor of the problem. This only _allocates_ the memory required by the
//! problem. The constructor is supposed to _never ever_ throw an exception.
Tutorial1Problem(Simulator& simulator)
explicit Tutorial1Problem(Simulator& simulator)
: ParentType(simulator)
, eps_(3e-6)
{ }