Boost logo

Boost Users :

Subject: Re: [Boost-users] [Review] UUID library (mini-)review starts today, November 23rd
From: Tim Blechmann (tim_at_[hidden])
Date: 2008-11-24 12:56:20


> The mini-review of Andy Tompkins UUID library starts today, November
> 23rd 2008, and will end on November 30th.

i just did a quick compile/testsuite test for now, and i see three
trivial issues:

1. it doesn't compile with gcc-4.4, because of a missing include.
patch:
--- a/boost/uuid/seed_rng.hpp
+++ b/boost/uuid/seed_rng.hpp
@@ -26,6 +26,7 @@
 #include <memory.h>^M
 #include <ctime>^M
 #include <cstdlib>^M
+#include <cstdio>^M
 #include <boost/uuid/sha1.hpp>^M
 //#include <boost/nondet_random.hpp> //forward declare boost::random_device^M
 ^M

2. the testsuite fails on x86_64 because it is using hardcoded 32-bit
hash values:
Running 1 test case...
libs/uuid/test/test_uuid.cpp(146): error in "test_main_caller( argc, argv )": check uuid_hasher(uuid()) == 3565488559U failed [17562157925649023279 != 3565488559]
libs/uuid/test/test_uuid.cpp(147): error in "test_main_caller( argc, argv )": check uuid_hasher(u1) == 4159045843U failed [6622376135548557651 != 4159045843]
libs/uuid/test/test_uuid.cpp(148): error in "test_main_caller( argc, argv )": check uuid_hasher(u2) == 2713274306U failed [4700797755868797762 != 2713274306]

*** 3 failures detected in test suite "Test Program"

3. the sources use cr+lf eol style, i guess correctly importing the
sources into subversion will fix this

maybe i find some time to do a full review later this week. anyway,
i have been using the library for quite some time and would like to
see it being part of boost. thus i vote for acceptance.

cheers, tim

-- 
tim_at_[hidden]
http://tim.klingt.org
The composer makes plans, music laughs.
  Morton Feldman

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net