title: Copy of const char * using std::string constructor
body: <p>is this code ok?</p>
  
  <pre><code>void SomeClass :: foo(const char * _name) {
       //name is of type const char *
       name = std::string(_name).c_str();
  }
  </code></pre>
  
  <p>it looks like it is working, but iam not sure if it is ok</p>
  
  <p>should i do an old school strcpy ?</p>