title: What is the correct way to initialize static data members in C++ (98, 11 and 14)
body: <p>What is the right way to initialize <code>static</code> data members in C++? I'm also interested in how it has changed from C++98, to C++11 to C++14.</p>
  
  <p>Here is an example:</p>
  
  <pre><code>// bufferedOutput.h
  class BufferedOutput
  {
   // Static member declaration.
   static long bytecount;
  };
  
  // bufferedOutput.cpp
  long BufferedOutput::bytecount = 50;
  </code></pre>
  
  <p>Are there other ways to initialize <code>static</code> data members?</p>