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 09:53:30


I omitted the copyconstructor as it's generated by the compiler.

I updated the class to utilize BOOST_NOEXCEPT_IF for each member, also I
renamed the macro to BOOST_DEFAULT_CLASS (which I think is a better name).
I kept the original file name right now as I dont want to change the link.

I will add BOOST_DEFAULT_POD_CLASS and BOOST_DEFAULT_MOVABLE_CLASS and a
constructor which takes all the parameters.

I think the problem with utilizing the member swap is that it doesnt work
with integers etc


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