title: Can you use thread local variables inside a class or structure
body: <p>Like this.</p>
  
  <pre><code>struct some_struct
  {
   // Other fields
   .....
   __thread int tl;
  }
  </code></pre>
  
  <p>I'm trying to do that but the compiler is giving me this error.</p>
  
  <pre><code>./cv.h:16:2: error: '__thread' is only allowed on variable declarations
          __thread int tl;
  </code></pre>