s(message)actually calls the constructor std::string, which builds a new object of this type from the specified array of characters that it points to message. sis just a conditional name assigned to a string object. std::stringis an idiomatic C ++ object for working with strings; it is usually preferred over raw C strings.
Consider this simple example:
class A {
public:
A() {storedValue=0;}
A(int someValue) {storedValue=someValue;}
public:
int storedValue;
};
A a(5);
A a = A(5);
A a = 5;
A a;
A a = A();
std::string , , const char* - , string::string(const char*) .