This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: namespace c99
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Subject: Re: namespace c99
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 27 May 2001 17:36:51 +0200
- Cc: libstdc++ at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <Pine.SOL.3.91.1010525093619.21927B-100000@taarna.cygnus.com>
Benjamin Kosnik <bkoz@redhat.com> writes:
| > There is no clue about the rationale.
|
| Yeah. Lame entry, sorry about that.
|
| Didn't compile? Wasn't legal C++? Both EDG and g++ freaked on it.
The following doesn't compile:
#define _GLIBCPP_USE_C99
#include <cmath>
int c99 = 20010527;
int main()
{
return 0;
}
| The current solution isn't exactly what you wanted but it is legal C++ code.
If I recall correctly, we agreed that c99 should be defined in std::.
I'm producing a patch.
| > Anyway, I'm going to put namespace c99 inside namespace std. There
| > should be no problem with so doing.
|
| I tried aliasing, I couldn't get it to work.
Hmm, what do you mean by that?
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com