Guest User

Untitled

a guest
Aug 17th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  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();
Add Comment
Please, Sign In to add comment