namespace c99

Gabriel Dos Reis gdr@codesourcery.com
Sun May 27 08:36:00 GMT 2001


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



More information about the Libstdc++ mailing list