Let's say I have a function that takes a reference to a string, is it safe to pass a c style string to this function? Or should I use a local copy so the constructor does it's job? I tested this and it works it just seems strange that I can pass a c string to a function that wants a const std::string&.
Thanks.