title: How can the non-templated struct nested inside of a templated outer class access static members of the outer class?
body: <p>I swear I've searched all over the Internet and SO for this exact problem, but couldn't find any solutions.</p>
  
  <p>Here's the setup:</p>
  
  <pre><code>template &lt;typename T&gt;
  class Foo {
    static bool bar;
  
  public:
    struct Baz {
      void quux() {
        // I want to access bar here
      }
    };
    // friend typename struct Foo&lt;T&gt;::Baz;
    // The above works, but I'm not sure if it's what I need?
  };
  </code></pre>
  
  <p>Is what I'm trying to do possible?</p>