daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Aug 17th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Boost::this_thread::get_id() without string operation
  2. std::ostringstream oss;
  3. oss << boost::thread::get_id();
  4. std::string idAsString = oss.str();
  5.    
  6. std::string id = boost::lexical_cast<std::string>(boost::thread::get_id());
  7.    
  8. boost::thread::id MyVariable = boost::thread::get_id();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top