This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: libstdc++ PATCH to initializer_list to #error in C++98 mode


On 10/31/2011 09:17 PM, Jason Merrill wrote:
On 10/31/2011 04:07 PM, Paolo Carlini wrote:
On 10/31/2011 08:37 PM, Jason Merrill wrote:
I have on occasion been confused by <initializer_list> silently
becoming empty in C++98 mode. OK for trunk?
For c++98, I think we should use the usual:

#ifndef __GXX_EXPERIMENTAL_CXX0X__
# include <bits/c++0x_warning.h>
#else

which we have in place elsewhere. Or we have special reasons for not
doing that?

I'd rather not make a libsupc++ header dependent on a header from the main library. I guess we could move c++0x_warning.h into libsupc++, though...
Sure. Note anyway, that bits/c++config.h is already included, elsewhere too in libsupc++.

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]