RFA: v3 PATCH to add on_quick_exit/quick_exit to std
Paolo Carlini
paolo.carlini@oracle.com
Wed Feb 13 15:08:00 GMT 2013
Hi,
On 02/13/2013 03:38 PM, Jason Merrill wrote:
> On 02/12/2013 07:55 AM, Paolo Carlini wrote:
>> Again, the current status is in a sense good because when the
>> _GLIBCXX_HAVE_AT_QUICK_EXIT and _GLIBCXX_HAVE_QUICK_EXIT are defined,
>> thus the system has the functions in its c library, including <cstdlib>
>> makes available the functions in namespace std irrespective of the
>> configury. But then why having c_std in the first place? I'll leave this
>> to Benjamin...
> As I understand it, the difference between c_std and c_global is
> supposed to be that c_std keeps the C library in std, whereas c_global
> has it in both std and the global namespace. All the other
> differences that have arisen between them seem unintended and wrong.
The fact is, for many, many years we didn't even try to keep the C
library in std only. On the other hand the split c_std / c_global is
relatively recent (was born in 4.3). Yes, I'm quite confused ;)
> There is, however, a question whether we need c_std at all now that
> the standard allows the C library to be in the global namespace as well.
Indeed. We could maybe imagine do away with c_std in 4.9...
Paolo.
More information about the Libstdc++
mailing list