id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 10510,boost::uuids::uuid comparison error when used as key in std::map,cosmin.szanto@…,Andy Tompkins,"When using two almost equal uuids (e.g. the last character differs), ''a'' as a key of a std::map and ''b'' as parameter for the '''find''' function, the function will return that elements ''b'' is found in the map. A simple test to reproduce the bug: {{{#!c++ #include #include #include #include int main() { boost::uuids::string_generator gen; boost::uuids::uuid a = gen(std::string(""145cfc95-8050-455a-8382-44ca57c1483b"")); boost::uuids::uuid b = gen(std::string(""145cfc95-8050-455a-8382-44ca57c1483c"")); std::map elements; // Adding element 'a' elements.insert(std::make_pair(a, 1)); // Element 'b' is found although is not added. std::cout << ((elements.find(b) != elements.end()) ? ""Found."" : ""Not found."") << std::endl; return 0; } }}}",Bugs,closed,Boost 1.59.0,uuid,Boost 1.56.0,Showstopper,fixed,,