title: Move-semantics vs const reference
body: <p>my class has string variables and I want to initialize them with values passed to the constructor.<br />
  <br />
  My teacher thought us to pass strings as a const-reference:</p>
  <pre class="lang-cpp prettyprint-override"><code>MyClass::MyClass(const std::string &amp;title){
    this-&gt;title = title
  }
  </code></pre>
  <p>However Clang-Tidy suggest using the move command:</p>
  <pre class="lang-cpp prettyprint-override"><code>MyClass::MyClass(std::string title){
    this-&gt;title = std::move(title)
  }
  </code></pre>
  <p>So I'm wondering what the correct way to do this in modern C++ is.</p>
  <p>I already looked around, but nothing really answered my question. Thanks in advance!</p>