title: get a basic c++ program to compile using clang++ on Ubuntu 16
body: <p>I'm running into problems compiling on Ubuntu 16.04 LTS (server).  It compiles okay if I don't include the <code>-std=c++11</code> bit.  Clang version is 3.8.</p>
  
  <pre><code>&gt;cat foo.cpp
  #include &lt;string&gt;
  #include &lt;iostream&gt;
  using namespace std;
  
  int main(int argc,char** argv) {
      string s(argv[0]);
      cout &lt;&lt; s &lt;&lt; endl;
  }
  
  
  &gt;clang++ -std=c++11 -stdlib=libc++ foo.cpp
  In file included from foo.cpp:1:
  /usr/include/c++/v1/string:1938:44: error: 'basic_string&lt;_CharT, _Traits, _Allocator&gt;' is missing exception specification
        'noexcept(is_nothrow_copy_constructible&lt;allocator_type&gt;::value)'
  basic_string&lt;_CharT, _Traits, _Allocator&gt;::basic_string(const allocator_type&amp; __a)
                                             ^
  /usr/include/c++/v1/string:1326:40: note: previous declaration is here
      _LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type&amp; __a)
                                         ^
  1 error generated.
  </code></pre>