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: [PATCH] Fix PR c++/30759: Initializer-list accepted for object of non-POD type


On Thu, 31 May 2007, Mark Mitchell wrote:

| For better future-proofing, we should introduce an enum:
| 
|   enum cxx_dialect {
|     cxx98,
|     cxx0x
|   };
| 
| and then replace flag_cxx0x with:
| 
|   enum cxx_dialect dialect;
| 
| Then, we can test "dialect != cxx98" and "dialect == cxx0x" as appropriate.

I agree this is a better plan.

-- Gaby


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