[patch][libc++]using some undeclared functions with -std=c++98, -std=c++03 or -ansi
David Chisnall
theraven at theravensnest.org
Sat Nov 24 11:12:47 UTC 2012
On 23 Nov 2012, at 21:27, Dimitry Andric wrote:
> Note there are also other problems when compiling libc++ with -std=c++98
> and -std=c++03, such as complaints about namespacing and such. I am not
> entirely sure libc++ is fully supported yet under those restrictions. :)
In theory, the libc++ headers that are part of the C++03 spec (i.e. not things like <stdatomic>) should work in C++98 / C++03 mode, however the implementation in libc++ must be compiled in C++11 mode.
To upstream this patch, the __LONG_LONG_SUPPORTED flag should be unconditionally set for non-FreeBSD flags in the __config file in libc++. This will have no functionality change on other platforms.
David
More information about the freebsd-toolchain
mailing list