News for hackers. Stuff that matters.
Re:Under the hood of C++ lambdas and std::function by Animats on Monday March 28, 2016 @02:54AM (#11373071)
Move is a template level concept, not a language concept. The compiler has no idea that something was moved, rather than assigned. Some implementations null out the "moved from" reference, so that a use after move will dereference null and crash the program.

I've referred to the attempts to fix C++ ownership semantics with templates as "wallpapering over the mold".

There are no comments on this comment yet.