News for hackers. Stuff that matters.
Re:C++ pitfalls by pdw on Wednesday November 28, 2012 @10:46AM (#4843065)
The second is avoided if you use C++11-style initializers:

    string a{"Hello"};
    string b{};
    string c = string{"World"};
Many of the others also disappear if you stick to a "modern" style.

There are no comments on this comment yet.