Hello,
Here is a following constructor :
template <typename... Args> MyClass(Args&&... args) : T(std::forward<Args>(args)...) {}
That causes a CppCheck error :
CppCheck: style - noExplicitConstructor: Class 'MyClass' has a constructor with 1 argument that is not explicit.
I use CppCheck 1.80.
Finally it seems it does make sense to put the explicit keyword in front of a such constructor. So this is not a CppCheck bug. Sorry.
Log in to post a comment.
Hello,
Here is a following constructor :
That causes a CppCheck error :
CppCheck: style - noExplicitConstructor: Class 'MyClass' has a constructor with 1 argument that is not explicit.
I use CppCheck 1.80.
Finally it seems it does make sense to put the explicit keyword in front of a such constructor.
So this is not a CppCheck bug. Sorry.