News for hackers. Stuff that matters.
Re:Under the hood of C++ lambdas and std::function by sebastic on Monday March 28, 2016 @06:13AM (#11373468)
Compiler will not warn this:

    MovableObject a, b, c;
    b = std::move(a);
    c = std::move(a);
`c` may contain garbage.

BTW the "move trait" (as its called in rust) is a related but orthogonal concept to its borrow checker.

Re:Under the hood of C++ lambdas and std::function by catnaroek on Tuesday March 29, 2016 @01:32AM (#11379660)
In Rust, moving isn't a trait. It's the default, non-overridable behavior of assignment and argument passing. And everything is movable.