I am trying to compare speed of boost::uuid vs UUidCreate from rpc.h. But the boost version crashes quite quickly in this loop! Any ideas?
# include <boost/uuid/uuid.hpp># include <boost/uuid/uuid_io.hpp># include <boost/uuid/random_generator.hpp> static boost::uuids::random_generator gen; for (int i = 0; i < 10000000; ++i) to_string(gen());