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-08 10:29:40

Is it possible to do this without having to specify a base class ('member')
for the variables?

If we are going to specify the member variables in a funny way, it may
> be worth considering a solution based on Boost.Fusion. For example,
> swap() can be made like this:
> class Foo {
> public:
> Foo()
> {
> member.a = 0;
> member.c = 0.0;
> }

Boost list run by bdawes at, gregod at, cpdaniel at, john at