News for hackers. Stuff that matters.
Re:You can't Rust that by jcelerier on Sunday April 01, 2018 @10:15AM (#16728378)
> As far as I'm aware moves are only done when explicitly asked for

no, every time you have a function returning a temporary you can have a move, e.g.

    std::vector<int> myfun();
    
    struct myclass { myclass(std::vector<int> v); };
here if you do

    myclass c{myfun()}; 
there can be a move

There are no comments on this comment yet.