Skip to content
Snippets Groups Projects
Commit 60de96ad authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[T] Fix non-explicit qualified single param ctors.

parent 3bc79b66
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ template<class F_JACOBIAN>
class ScalarDx
{
public:
ScalarDx(F_JACOBIAN &f_J) : _f_Jacobian(f_J) {}
explicit ScalarDx(F_JACOBIAN &f_J) : _f_Jacobian(f_J) {}
// dx = - r/J
void operator()(const double &x, const double &r, double &dx)
{
......
......@@ -51,7 +51,7 @@ public:
class Example2
{
public:
Example2(std::size_t n) : A(n, n), b(n) {}
explicit Example2(std::size_t n) : A(n, n), b(n) {}
void operator()(VectorType &x, VectorType &x_new)
{
......
......@@ -26,7 +26,7 @@ public:
using LinearSolver = MathLib::LinearSolver<Matrix, Vector>;
using NLSolver = NumLib::NonlinearSolver<Matrix, Vector, NLTag>;
TestOutput(const char* name)
explicit TestOutput(const char* name)
: _file_name_part(name)
{}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment