Boost logo

Boost :

Subject: [boost] N2346 - Defaulted and Deleted Functions emulation
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2008-11-20 10:49:14


Hi,

is there an interest in a N2346 - Defaulted and Deleted Functions emulation http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm

The idea been to use some macros that will use the =default, =delete if the compiler provides it and replace this macros by whatever has the same semantics. Alexandrescu introduced already two macros NON_ALIAS and NON_HEAP_ALLOCATED when talking about strict locks.

Attached a draft for the default and deleted functions.

Only one remark the macors must be used on the public part and without trailing ';', e.g.

class X {
    BOOST_NEW_DELETE(X)

Any coments are welcome,

Vicente




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