bug-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: comment class feature; VC6 namespace bug workaround


From: Kyle Schaffrick
Subject: RE: comment class feature; VC6 namespace bug workaround
Date: Thu, 18 Apr 2002 18:25:57 -0400

Mistake in my previous post... It was just so simple, I *HAD* to screw
it up. :)

> ----------------------------
> STDNS string
> CGICCNS CgiInput::getenv(const char *varName)
> {
>   char *var = 
> // MSVC C++ 6.0 lib problem, <cstdlib> is not in std 
> namespace #if defined(_MSC_VER) && _MSC_VER < 1201 // 
> hopefully they get it right next time
>               STDNS 
> #else // don't call the member function
>                  ::
> #endif
>                     getenv(varName);
>   return (var == 0) ? "" : var;
> }
> -----------------------------

...should be...

----------------------------
STDNS string
CGICCNS CgiInput::getenv(const char *varName)
{
  char *var = 
// MSVC C++ lib problem, <cstdlib> is not in std namespace
#if defined(_MSC_VER) && (_MSC_VER < 1201) // hopefully they get it
right next time
                 :: // don't call the member function
#else 
              STDNS 
#endif
                    getenv(varName);
  return (var == 0) ? "" : var;
}
----------------------------

Sorry for the mix-up!

-- kyle




reply via email to

[Prev in Thread] Current Thread [Next in Thread]