[cfe-dev] Setting default dialect to C++11

David Blaikie via cfe-dev cfe-dev at lists.llvm.org
Sun Mar 5 11:51:54 PST 2017


libstdc++, I assume - on linux and haven't specified any non-defaults in
that regard:

$ clang++-tot mem.cpp -c
mem.cpp:4:8: error: no member named 'unique_ptr' in namespace 'std'
  std::unique_ptr<int> u;
  ~~~~~^

(that's in a file with #include <memory>)

On Sun, Mar 5, 2017 at 11:49 AM Joerg Sonnenberger via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> On Thu, Mar 02, 2017 at 05:53:47PM +0000, David Blaikie wrote:
> > Often in small examples I hit it with library rather than language first
> -
> > which can be a bit more confusing ("what do you mean you can't find
> > unique_ptr, I totally included <memory>").
>
> Which library? I don't think libc++ at least restricts it to full C++11
> mode.
>
> Joerg
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170305/c2442ac1/attachment.html>


More information about the cfe-dev mailing list