[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Selecting a C++ standard
From: |
Adrian Bunk |
Subject: |
Re: Selecting a C++ standard |
Date: |
Sun, 28 Oct 2012 03:11:50 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sat, Oct 27, 2012 at 05:07:04PM -0700, Harlan Stenn wrote:
> Adrian Bunk writes:
> > On Sat, Oct 27, 2012 at 10:47:50PM +0100, Roger Leigh wrote:
>...
> > > I originally wrote AC_PROC_CC_C99 because it was several years
> > > since GCC supported C99, but there was no portable way to use
> > > C99 features with projects using autoconf unless you added
> > > horrible hacks. We still have this situation for C++, and it
> > > would be nice to solve it in a similar way to C. I'm happy to
> > > go with the new approach of a single macro, but I would be
> > > interested to understand how the issues I outlined above square
> > > with this.
> >
> > The main worry would actually be whether a compiler in C++11 mode might
> > reject any existing C++03 code.
>
> I submit you are still ignoring the other side of the problem, which
> says "Make sure I am using a C++03 compiler so I can be sure that the
> package builds with a C++03 compiler if that is all *somebody else* has."
Assuming all C++03 compilers support the complete standard is a quite
unrealistic assumption.
E.g. gcc does not support the complete C++98 or C++03 standards, and
AFAIK there are no plans that it ever will.
> H
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Re: Selecting a C++ standard, Roger Leigh, 2012/10/27
Re: Selecting a C++ standard, Roger Leigh, 2012/10/28
Re: Selecting a C++ standard, Bob Friesenhahn, 2012/10/28
Re: Selecting a C++ standard, Adrian Bunk, 2012/10/30
Re: Selecting a C++ standard, Nick Bowler, 2012/10/30
Re: Selecting a C++ standard, Adrian Bunk, 2012/10/30
Re: Selecting a C++ standard, Paul Eggert, 2012/10/30
Re: Selecting a C++ standard, Paul Eggert, 2012/10/28
Re: Selecting a C++ standard, Adrian Bunk, 2012/10/28