Skip to content

Instantly share code, notes, and snippets.

@gomons gomons/guid.h
Created Jun 21, 2017

What would you like to do?
Generate GUID by using boost C++ library
std::string generate_guid()
boost::uuids::uuid const uuid = boost::uuids::random_generator()();
return boost::uuids::to_string(uuid);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.