Boost logo

Boost Users :

Subject: [Boost-users] time variant uuid
From: Victor Whiskey Yankee (victor.whiskey.yankee_at_[hidden])
Date: 2012-05-09 21:40:06


Hello List,

How can I create uuids so that the first one compares less than the next one.. something like this:

boost::uuids::t1 = boost::uuids::random_generator()();
boost::uuids::t2 = boost::uuids::random_generator()();
BOOST_REQUIRE (t1 < t2);

I don't see how to replace random_generator() with a time-based variant, if that even makes sense.

If this can be done, then is there a way to extract the date+time from it?

Thanks,
Vic


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