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 -- Abir Basak, Member IEEE Software Engineer, Read Ink Technologies B. Tech, IIT Kharagpur email: abir@abirbasak.com homepage: www.abirbasak.com
"abir basak"
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
participants (2)
-
abir basak
-
Gennadiy Rozental