Is passing a string by ""
equivalent to passing a string by calling std::str("")
in C++?
e.g. given a function which accepts std::str
as an argument:
void funcA(std::string arg) {
arg = "abc";
}
Should I call it by funcA(std::string("abc"));
or funcA("abc");
? i.e. is the second version a typecast from an array of char?