Platform-independent GUID generation in C++?

后端 未结 6 1482
余生分开走
余生分开走 2020-12-02 10:27

What is the best way to programmatically generate a GUID or UUID in C++ without relying on a platform-specific tool? I am trying to make unique identifiers for objects in a

6条回答
  •  盖世英雄少女心
    2020-12-02 10:57

    If you can afford to use Boost, then there is a UUID library that should do the trick. It's very straightforward to use - check the documentation and this answer.

提交回复
热议问题