A member function can return anything you wish, including a "string", if there is such type or class in the scope of the class.
It does not make any sense to try to guess what an error message means without seeing the code. And it does not make any sense to ask what an error message means without posting some code.
Bookmarks