and I have a function which returns an object of this class by value:
A getA()
{
return a;
}
Cppcheck issues "noExplicitConstructor" warning for the specified constructor, but if I declare it explicit, then I couldn't return it from the function this way. How do I deal with this situation?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a class with copy constructor defined:
and I have a function which returns an object of this class by value:
Cppcheck issues "noExplicitConstructor" warning for the specified constructor, but if I declare it explicit, then I couldn't return it from the function this way. How do I deal with this situation?