title: Thread (Attempt to use a deleted function
body: <p>I'm following an online tutorial on threading and got the error message "Semantic Issue: Attempt to use a deleted function". Any idea what's wrong?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;thread&gt; 
  #include &lt;string&gt;
  
  using namespace std;
  
  class Fctor {
  public:
      void operator() (string &amp; msg) {
          cout &lt;&lt; "t1 says: " &lt;&lt; msg &lt;&lt; endl;
          msg = "msg updated";
      }
  };
  
  
  int main(int argc, const char * argv[]) {
  
      string s = "testing string " ;
      thread t1( (Fctor()), s);
  
      t1.join();
  
      return 0;
  }
  </code></pre>