> [...] > At that time, I've haven't written (yet) neiher a wizard for a swap() > function, nor for the copy-constructor. It should be easy to do on > the same model of the one of :Constructor > Regarding the assignment operator, lh-cpp (through mu-template) > provide several snippets: > - copy-and-swap > - assignment-operator -- you may want to use :MOVETOIMPL to move the > inlined assignment operator to the .cpp file > - copy-constructor > - destructor
OK. Now it's done. install lh-cpp (preferably with VAM, unless you want to do decrypt the multiple dependencies of my plugin suite) You'll have: - :Constructor, or :ConstructorInit, or :Constuctor init - :Constructor default, or :ConstructorDefault - :Constructor copy, or :ConstructorCopy - :Constructor assign, or :AssignmentOperator They'll do what you asked for. An up-to-date ctag database is still required Regarding assignment operators, I'd instead recommend you use copy-and-swap idiom. (expand the snippet assignment-operator with mu-template), it'll do the trick -- except, I haven't written a Class::swap() generator yet) You may have to define a local_vimrc (or an equivalent project oriented feature) to tune your naming conventions -- mu-template should assist you regarding this issue (still in a beta stage). I'll take care C++11 forward constructor another day. HTH -- Luc Hermitte http://lh-vim.googlecode.com/ -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
