Avatar of Knut Hunstad
Knut Hunstad
Flag for Norway

asked on 

boost::uuid crashes

Hi!

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());

Open in new window


Is there really any reason we should prefer the boost version?

Thank you!
C++

Avatar of undefined
Last Comment
Knut Hunstad

8/22/2022 - Mon