Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2001-04-05 09:14:10


At 08:33 AM 4/5/2001, John Maddock wrote:

>BTW how about :
>
>BOOST_STATIC_ASSERT(sizeof(T));
>
>which would have the effect you want I think...

I'll test that.

I want to think about the change for a few days, too. There is a down
side:

* The change will break some user code.

* Destructors become slightly slower.

OTOH:

* Safety is improved.

* If the documentation clearly shows how to make non-trivial destructors
work for opaque (ie, incomplete) implementation classes, that is in effect
a functionality improvement since the idiom is unfamiliar to many
programmers.

--Beman


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