1. #include <thread>
  2. #include <boost/thread/tss.hpp>
  3.  
  4. class Run{
  5.   public:
  6.     void operator()() const{
  7.     }
  8.  private:
  9.     boost::thread_specific_ptr<int> local;
  10. };
  11.  
  12.  
  13. int main(int argc, char *argv[]){
  14.   Run run;
  15.   thread t(run);
  16.   return 0;
  17. }