|
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