title: Const Member Variables in C++11
body: <p>code</p>
  
  <pre><code>   category::category ( const std::string p_name , std::string p_ImagePath) :
      m_name { p_name },
      m_ImagePath {p_ImagePath }
      {
  
      }
  </code></pre>
  
  <p>header</p>
  
  <pre><code>#pragma once
  #include &lt;string&gt;
  class category
  {
  public:
      const int i;
      explicit category ( const std::string p_name ,const std::string p_ImagePath);
      ~category ( );
      std::string GetName ( );
  private:
      std::string m_name;
      std::string m_ImagePath;
  };
  </code></pre>
  
  <p>I allways get errors due to assignment opperator</p>
  
  <p>Fehler  1   error C2280: 'booking &amp;booking::operator =(const booking &amp;)' : attempting to reference a deleted function   C:\Program Files (x86)\Microsoft Visual C++ Compiler Nov 2013 CTP\include\utility   53</p>
  
  <p>if i try to use a const member variable or a const static member variable in a class.</p>
  
  <pre><code>I tried const i = 5;
  static const i = 5;
  and const i; -&gt; i gets initialized in constructor.
  </code></pre>
  
  <p>Nothing works, how can i fix this? 
  And i cant use constexpr due to vs2013 does not assist it :(</p>
  
  <p>I already checked some questions on Stackoverflow but everything was with constexpr</p>