This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: namespace c99


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


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