Convert boost::uuid to char*

Viewed 33616

I am looking to convert a boost::uuid to a const char*. What is the correct syntax for the conversion?

5 Answers
boost::uuids::uuid u;

const char* UUID = boost::uuids::to_string(u).c_str();

It is possible to do a simple and quick conversion.

Related