Boost logo

Boost :

Subject: Re: [boost] Boost library submission (poll for interest)(2)
From: Stefan Strasser (strasser_at_[hidden])
Date: 2010-01-19 07:28:31


Am Tuesday 19 January 2010 08:47:19 schrieb Rutger ter Borg:

> Interesting, when building an abstraction on top of Berkeley DB, here I
> used

is that layer publicly available?

>
> 1) type_traits/has_trivial_copy
> 2) introduced a has_trivial_array type trait (type that serializes with
> ptr/size, and can be constructed with a ptr/size), e.g., std::vector,
> std::string, etc.
> 3) serialization fallback

I think there is no way around a user-defined trait.
a POD containing a pointer has a trivial copy constructor but it is not
bitwise serializable.


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