John Doe - 2016-06-01

I have a class with copy constructor defined:

A(const A& other);

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?