[uuid] proposed fix for windows_generator.hpp

Hi, In boost/uuid/windows_generator.hpp a conversion routine is used that does return a UUID but it is not the same as the one that was generated through the call to UuidCreate(). I have attached a test case that is showing the difference of the choosen implementationen and the expected one. The expected one was validated using the VS debugger, too. I would like that the provided convertion routines from the windows specific GUID/UUID structure to boost::uid and vice versa will be included in boost::uuid, too. I'm using the v13 version from the vault. Should I open a bug report for this issue? Bye Christian -- Christian Leutloff, Aachen, Germany ______________________________________________________ GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de

2009/7/22 Christian Leutloff <christian.leutloff@web.de>:
I have attached a test case that is showing the difference of the choosen implementationen and the expected one. The expected one was validated using the VS debugger, too.
To save others checking the provided code: Microsoft's GUID class (which it also calls a UUID) stores the internal values as uint32_t, uint16_t, uint16_t, uint8_t[8] in native -- little-endian -- byte order, so the first 3 members need byte order reversing to match the in-memory format specified by the RFC. http://msdn.microsoft.com/en-us/library/aa379358%28VS.85%29.aspx
participants (2)
-
Christian Leutloff
-
Scott McMurray