title: Cannot initialize a member subobject of type 'char *' with an lvalue of type 'const char *'
body: <p>I have the following:</p>
  
  <p>data.hpp</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  class Data{
  
  private:
      char* input_filename;
      char* csv_filename;
  
  public:
      Data(const char* in_filename,const char* out_csv="output.csv");
  };
  
  #endif /* data_hpp */
  </code></pre>
  
  <p>And <code>data.cpp</code></p>
  
  <pre><code>#include "data.hpp"
  
  Data::Data(const char* in_filename,const char* out_csv): input_filename(in_filename), output_csv(out_csv)
  {}
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>Cannot initialize a member subobject of type 'char *' with an lvalue of type 'const char *'
  </code></pre>
  
  <p>How can I initialize two array of chars that are passed in the constructor?</p>