title: How do I return the pointer to a class scoped array from a class function?
body: <p>The code below does not compile, but if I make _foo static, it will. Why? And, more importantly, <strong>is there a way to make the code below work, without making _foo static</strong>?</p>
  
  <pre><code>class SomeClass {
  public:
      const char** getFoo() const {
          return _foo;
      }
  private:
      const char* _foo[ 10 ];
  };
  </code></pre>