Boost logo

Boost :

From: Andy (atompkins_at_[hidden])
Date: 2007-02-23 10:05:14


<Oliver.Kowalke_at_[hidden]> wrote in
news:B1EAFF2DAE7658488B631F25813CD91FCFC612_at_[hidden]:

> Hello,
> Currently are two guid libraries in the vault. Is it possible to
> create one library containing the code for guid v1,v4,v5?

I am not very happy with the create_v1() function in guid_v3.zip. Really
it just pretends to implement the specification correctly. Thus I removed
it. guid_v5.zip has create_v4 (random number based) and create_v5 (name
based) implemented correctly.

> Or better - could we get one guid class with the static member
> functions guid::create_v1(); guid::create_v4(), guid::create_v5()?
>
> Regards,Oliver
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>

Both create_v4() and create_v5() can be obtained from static functions,
guid::create() - random number based (v4), and guid::create(guid const&,
char const&, int) - name based (v5).

I hope this answers your question.

Andy


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