Boost logo

Boost :

Subject: Re: [boost] boost.uuid is_pod failure
From: Andy Tompkins (atompkins_at_[hidden])
Date: 2009-07-15 14:28:10


Hi Tim,

On Wed, 15 Jul 2009 07:02 +0200, "Tim Blechmann" <tim_at_[hidden]> wrote:
> hi all,
>
> using boost.uuid from uuid_alt_v13_pod.zip, i get some static assertion
> failures of is_pod<boost::uuid>
>
> --- test_uuid.cpp~ 2008-12-06 02:27:38.000000000 +0100
> +++ test_uuid.cpp 2009-07-15 10:59:01.016387917 +0200
> @@ -22,6 +22,8 @@
>
> #include <string>
> #include <vector>
> +
> +BOOST_STATIC_ASSERT(boost::is_pod<boost::uuid>::value);
>
> int test_main(int, char*[])
> {
>
> i am not sure, whether it is a problem of is_pod or uuid, though ...

The documentation for boost::is_pod<> says:

Without some (as yet unspecified) help from the compiler, ispod will
never report that a class or struct is a POD; this is always safe, if
possibly sub-optimal. Currently (May 2005) only MWCW 9 and Visual C++ 8
have the necessary compiler-_intrinsics.

Here is the link:
http://www.boost.org/doc/libs/1_39_0/libs/type_traits/doc/html/boost_typetraits/reference/is_pod.html

Regards,
Andy.

>
> best, tim
>
> --
> tim_at_[hidden]
> http://tim.klingt.org
>
> Lesser artists borrow, great artists steal.
> Igor Stravinsky


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