Boost logo

Boost :

Subject: Re: [boost] [assert] static_assert envy
From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2011-01-17 10:15:31


On Mon, Jan 17, 2011 at 11:06 PM, Beman Dawes <bdawes_at_[hidden]> wrote:
>
>  namespace boost { namespace assertion { namespace detail {
>  inline void extended_assert_failed(char const * msg, char const *
> function,
>    char const * file, long line)
>  {
>    std::cerr << "***** Internal Program Error - Assertion Failed *****\n";
>    std::cerr << file << '(' << line << "): error in " << function << ": "
> << msg << std::endl;
>    std::exit(99999);
>  }
>  }}}  // boost::assertion::detail
>

This caught my eye. Do you really want to hard-code the exit value to
99999? Or would you rather use std::abort() just like the normal
cassert implementation does?

-- 
Dean Michael Berris
about.me/deanberris

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk