Re: [Boost-users] portable uuid generator - seed
Hi Andy, as you mentioned in t he source std::time(0) is not a good truly-random seed. Maybe you could use boost::posix_time::microsec_clock::universal_time().time_of_day().total_ nanoseconds() ? Regards, Oliver
hi andy,
On Fri, 2006-03-03 at 14:26 +0000, Andy Tompkins wrote:
I am currently working on a guid class. It is not quite done yet, but is quite functional. It does have a portable function to create guids. I have put it in the boost vault (guid.zip) in the hopes that it may one day be a boost library.
well, the api looks really good (very similar to my libuuid wrapper) ... but i'm a bit lost building it ... i guess i have to run bjam, but how do i have to use it? up to now i was just using emerging boost, but i have to experience in building it :-/
thanks ... tim
-- TimBlechmann@gmx.de ICQ: 96771783 http://www.mokabar.tk
Linux is like a wigwam: no windows, no gates, apache inside, stable.
Using Boost 1_33_1 and Visual Studio 8. Any and all help appreciated.....
Working with "The FlySwapper" example in the "C++ Template Metaprogramming" book. Pages 22-24. It crashes when I do this:
std::vector<bool>::iterator i1;
std::vector<bool>::iterator i2;
use_swap( &i1, &i2 ) // crash here
All other types I try work fine. But doing <bool> crashes on this line:
iter_swap_impl
Please start a new thread when starting a new subject, rather than
replying to another thread and changing the subject line.
http://www.boost.org/more/discussion_policy.htm#effective
"Ed Fisher"
Using Boost 1_33_1 and Visual Studio 8. Any and all help appreciated.....
Working with "The FlySwapper" example in the "C++ Template Metaprogramming" book. Pages 22-24. It crashes when I do this:
std::vector<bool>::iterator i1; std::vector<bool>::iterator i2; use_swap( &i1, &i2 ) // crash here
No such line of code exists in the book.
All other types I try work fine. But doing <bool> crashes on this line:
iter_swap_impl
::do_it(*i1,*i2); // ouch!!!
Sorry, this is an erratum that has since been corrected in more recent printings: http://boost-consulting.com/mplbook/errata.html#id2 HTH, -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (3)
-
David Abrahams
-
Ed Fisher
-
Oliver.Kowalke@infineon.com