title: "Use of deleted function" error with std::atomic_int
body: <p>I want to use an <code>std::atomic_int</code> variable. In my code, I have:</p>
  
  <pre><code>#include &lt;atomic&gt;
  
  std::atomic_int stop = 0;
  
  int main()
  {
      // Do something
  }
  </code></pre>
  
  <p>And this gives me a compile error:</p>
  
  <pre><code>use of deleted function 'std::__atomic_base&lt;_IntTp&gt;::__atomic_base(const std::__atomic_base&lt;_IntTp&gt;&amp;) [with _ITp = int]'
   std::atomic_int stop = 0;
                          ^
  </code></pre>
  
  <p>Any idea on what's going on?</p>