Boost logo

Boost :

Subject: Re: [boost] [contract] _NOEXCEPT errors in <ostream> for Clang 5.0 C++1z on Teeks Linux
From: Peter Dimov (lists_at_[hidden])
Date: 2017-11-15 22:52:34


Lorenzo Caminiti wrote:
> > In file included from /usr/include/c++/v1/ostream:138:
> > In file included from /usr/include/c++/v1/ios:216:
> > In file included from /usr/include/c++/v1/__locale:15:
> > /usr/include/c++/v1/string:1942:14: error: expected ';' at end of
> > declaration
> > _NOEXCEPT
> > ^
> > /usr/include/c++/v1/string:1947:9: error: expected unqualified-id
> > _NOEXCEPT
> > ^
> > /usr/include/c++/v1/__config:368:21: note: expanded from macro
> > '_NOEXCEPT'
> > # define _NOEXCEPT noexcept
> ^
> > 2 errors generated.
>
> Any idea about this? I couldn't find any reference to it online...

Something is wrong with that libc++ install as clang is 5.0, but <__config>
line 368 only has this content at release_37:

https://github.com/llvm-mirror/libcxx/blob/release_37/include/__config#L368

and I can't a version of <string> that corresponds to the above lines 1942
and 1947.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk