title: Static constant string array, how to use
body: <p>How can I initialize and use an static constant string array? I made an example, the header:</p>
  
  <pre><code>const static string validFileTypesToSendToClient[];
  </code></pre>
  
  <p>The implementation:</p>
  
  <pre><code>const string Settings::validFileTypesToSendToClient[] = {"html","css","js"};
  </code></pre>
  
  <p>This works, but how can I use this? For example in this case: </p>
  
  <pre><code>string fileTypesToAllow[] = Settings::validFileTypesToSendToClient;
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>Initialization with ‘{…}’ expected for aggregate object.
  </code></pre>
  
  <p>So, how can I use a static constant array of string in a proper way? I already found this: <a href="https://stackoverflow.com/questions/6536805/initializing-a-static-const-array-of-const-strings-in-c">Initializing a static const array of const strings in C++</a> but they don’t describe how to use it. </p>