title: How to fix clang libc++ error on Mac: calling private constructor
body: <p>I'm trying to compile a (private) C++ software with Clang and libc++ on Mac OS X 10.10 and am getting this error:</p>
  
  <pre><code>error: calling a private constructor of class 'std::__1::__wrap_iter&lt;unsigned short *&gt;'
  </code></pre>
  
  <p>Full error message <a href="https://gist.github.com/cdeil/5d5b1bec5fb0bb0a3e58#file-gistfile1-txt-L29" rel="nofollow">here</a>.</p>
  
  <p>Can someone explain this error and how to fix it?
  A small self-contained code example that results in this error and an option how to re-write it so that it works would be great!</p>