autoconf-patches
[Top][All Lists]
Advanced

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

Re: C++ fix and test


From: Raja R Harinath
Subject: Re: C++ fix and test
Date: 20 Dec 2000 11:08:52 -0600
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.0.93

Akim Demaille <address@hidden> writes:
> >>>>> "Alexandre" == Alexandre Oliva <address@hidden> writes:
> Alexandre> Nope.  That would change a lot in the results of tests, so
> Alexandre> the user would be forced to `using std' too otherwise s/he
> Alexandre> might run into differences between the tested behavior and
> Alexandre> that observed by his program.
> 
> Yep, using std::exit is probably all that is needed.
> 
> #include <stdlib.h>
> #if supports using
> using std::exit;
> #endif

The using part is unnecessary if you include the <*.h> header.  So,

  #include <stdlib.h>

should be it.

- Hari
-- 
Raja R Harinath ------------------------------ address@hidden
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



reply via email to

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