[C++ bindings] Add move-assign operator, require rvalue for move
authorMatt Corallo <git@bluematt.me>
Thu, 31 Dec 2020 20:34:50 +0000 (15:34 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 3 Feb 2021 15:11:28 +0000 (10:11 -0500)
commite57c225e0f1822809879da01e79e6157cc0996f7
tree1d83ae4e0d28de34289938ba31d22904e77f761d
parent1e06274765ce2c5614175baa355f6b67edefc14f
[C++ bindings] Add move-assign operator, require rvalue for move

This adds a move-assignment operator (`A& operator=(A&& o)`) to our
C++ wrapper classes as well as requiring an rvalue for the move
auto-convert operator (`operator CStruct()() &&`).

The second makes the C++ wrapper classes much easier to work with
by requiring an explicit `std::move` when the bindings will
automatically move a C++-wrapper object into a C object.
c-bindings-gen/src/blocks.rs