
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 ... best, tim -- tim@klingt.org http://tim.klingt.org Lesser artists borrow, great artists steal. Igor Stravinsky

AMDG Tim Blechmann wrote:
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 ...
is_pod cannot be implemented under the current standard. It requires compiler support or manual specializations. In Christ, Steven Watanabe

Hi Tim, On Wed, 15 Jul 2009 07:02 +0200, "Tim Blechmann" <tim@klingt.org> 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_typetra... Regards, Andy.
best, tim
-- tim@klingt.org http://tim.klingt.org
Lesser artists borrow, great artists steal. Igor Stravinsky

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.
ah, thanks ... i have attached a small patch providing a class specialization for is_pod<uuid>. would it be possible to include it? thnx, tim -- tim@klingt.org http://tim.klingt.org Question: Then what is the purpose of this "experimental" music? Answer: No purposes. Sounds. John Cage
participants (3)
-
Andy Tompkins
-
Steven Watanabe
-
Tim Blechmann