Boost logo

Boost Users :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2006-12-16 12:35:56


Maarten Nieber wrote:
> Sorry, I should have checked!
> It should be:
>
> assert( 2 + 2 == 4 && "Adding numbers failed!" )
>
That still won't fire. The concept is flawed. You cannot use assert()s
to print debug messages, because when an assert() prints a message, it
also stops the program.

Sebastian Redl


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net