Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2000-08-27 09:11:29

From: "John Maddock" <John_Maddock_at_[hidden]>

> Dave,
> >Unless I know that equality_comparable and less_than_comparable have
> trivial
> >destructors, I can't use them as shown above. I suggest that we begin to
> pay
> >attention to this little detail, and when trivial ctors or dtors are
> present
> >n a class, we mention it in our documentation pages.
> If this is a major concern and you want to be able to do compile time
> asserts and other stuff on this, then how about specialising
> boost::has_trivial_destructor etc? The principal down side is that it
> introduces a dependency (on type_traits) that you may well not want....

That's an interesting idea, although I don't think it will work for
compilers that don't support partial specialization for some classes like
equality_comparable. I'm really more concerned with getting such properties
into the documentation, so that clients who use the libraries know what they
can count on.


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