Boost logo

Boost :

Subject: Re: [boost] [utility] Any interest for a macro which automatically creates default move-semantics, comparisson etc for a class
From: Viktor Sehr (viktor.sehr_at_[hidden])
Date: 2013-11-07 07:03:53


Thanks for the response, I've updated the class to utilize boost::swap,
boost::move and also marked move\swap function as noexcept.
I'm thinking about extending it for pod-classes (only provide
comparisson\sort) and perhaps move-only classes. Also perhaps a constructor
which takes all member variables as parameters (especially in the pod-case
it's probably useful)?

/Viktor


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk