News for hackers. Stuff that matters.
Re:C++: Return value optimization vs. std::move by lorenzhs on Monday July 20, 2015 @11:24AM (#9916628)
clang 3.7 has a warning when std::move prevents it from using return value optimization:

    foo.cpp:44:25: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
        auto result = std::move(worker.run());

    foo.cpp:44:25: note: remove std::move call here
        auto result = std::move(worker.run());
Re:C++: Return value optimization vs. std::move by arto on Monday July 20, 2015 @12:01PM (#9916921)
That's a welcome feature indeed. (Too bad the 3.7 release is still a month away.)