i’m in a situation where i need to get boost::thread::id into a variable, but this variable is NOT a string, neither a string operation is allowed. is that possible?
maybe something like
char *tid = (casting something) boost::this_thread::get_id()
this is c++ on unix system.
the reason why avoiding using string operation is because it slows down the whole application speed. thanks before.
What about:
See the documentation on boost::thread::id
Update:
Since you already use boost, why not use:
Also, as you are doing this only at the beginning speed should not be an issue.