Add example of clang attributes for prevention of use after move.
Add example of clang attributes for prevention of use after move.

Compile with:

clang -Wconsumed move_bugs.cpp -o move_bugs -lstdc++

Warning message is generated during compilation:

move_bugs.cpp:20:12: warning: invalid invocation of method 'do_something' on object 'object' while it is in the 'consumed' state [-Wconsumed]
    object.do_something();
           ^
1 warning generated.

tisma/ctorious,tisma/ctorious