Boost logo

Boost Users :

From: Maarten Nieber (hallomaarten_at_[hidden])
Date: 2006-12-15 08:51:06


I use the trick assert( 2 + 2 == 4 || "Adding numbers failed!" ) This will probably work for BOOST_ASSERT as well. Kind regards Maarten ----- Original Message ---- From: Gennadiy Rozental <gennadiy.rozental_at_[hidden]> To: boost-users_at_[hidden] Sent: Thursday, December 14, 2006 4:03:15 PM Subject: Re: [Boost-users] BOOST_ASSERT and others "abir basak" <abirbasak_at_[hidden]> wrote in message news:elr59r$sho$1@sea.gmane.org... > > Hi, > Hi, if any assert is there like BOOST_ASSERT or assert where I can > pass a custom message to print on assert failure ? > i.e. something like > BOOST_ASSERT(condition, message) > > Also, is there any debug print version for boost? > Something like, I want a message should be printed only when the > application is running in DEBUG version (whatever flag the system > provides for that). > The message can be cout or printf kind of thing. A little safety is > better sometimes like debug print can't change the value of the variable > etc. > Thanks Google for smart_assert. There was one by john torjo. Gennadiy _______________________________________________ Boost-users mailing list Boost-users_at_[hidden] http://lists.boost.org/mailman/listinfo.cgi/boost-users __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


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