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]
Other format: [Raw text]

Re: RFC: Mirror system header exposure in libstdc++-v3's headers


On Fri, Apr 04, 2003 at 09:58:28PM -0600, Loren James Rittle wrote:
> 
> Here is an example set of hooks to be dropped into an os_defines.h file:
> 
> #define _GLIBCPP_USE_C99_EXPOSURE_HOOK (__ISO_C_VISIBLE >= 1999)
> #define _GLIBCPP_USE_LONG_LONG_EXPOSURE_HOOK (defined (__LONG_LONG_SUPPORTED))

Personally, I like it.  Very extensible.


>   #if _GLIBCPP_USE_C99
> + #if !defined (_GLIBCPP_USE_C99_EXPOSURE_HOOK) || _GLIBCPP_USE_C99_EXPOSURE_HOOK
>   using std::fpclassify;
>   using std::isfinite;
>   using std::isinf;
> ***************
> *** 69,74 ****
> --- 70,76 ----
>   using std::islessequal;
>   using std::islessgreater;
>   using std::isunordered;
> + #endif
>   #endif

If the number of lines between #if and #endif is not small, and we have
nested if's like this, I really like having

    #endif /* some kind of note */

Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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