News for hackers. Stuff that matters.
Re:Baidu File System – A distributed file system for real-ti... by bn-usd-mistake on Tuesday October 25, 2016 @07:59AM (#12787126)
It is specified clearly though. The behavior is not compiler dependent, it's specified in the C++ Language standard. See http://en.cppreference.com/w/cpp/language/default_initializa... and http://www.cplusplus.com/reference/string/string/string/

If a different compiler breaks this behavior, it's not standard compliant and thus could do all sorts of stuff in every possible line, including in:

    std::string pad = "";
Re:Baidu File System – A distributed file system for real-ti... by GoToRO on Tuesday October 25, 2016 @08:11AM (#12787186)
Standards change. Don't they?
Re:Baidu File System – A distributed file system for real-ti... by knorker on Tuesday October 25, 2016 @12:31PM (#12789308)
So how can you use operator= or copy constructor of string?

The '= ""' won't help you.

Re:Baidu File System – A distributed file system for real-ti... by consz on Tuesday October 25, 2016 @08:18AM (#12787221)
Do you think that's any more likely than the constructor of std::string changing?