Boost logo

Boost :

From: Dan W. (danw_at_[hidden])
Date: 2004-01-12 03:16:19


John Torjo wrote:
> Dan, I dare you to try this:
> // assert_example.cpp
> #include <boost/smart_assert_ext.hpp>
> void login_admin( const std::string & username, const std::string &
> passw) {
> SMART_ASSERT( username == "admin" && passw == "secret")
> (username)(passw)
> .msg( "Unauthorized administrator login!");
> }
> int main() {
> login_admin( "admin", "anonymous");
> return 0;
> }
> You can get the code from http://www.torjo.com/smart_assert.zip
> Also, it's been quite tested on VC6.

I'm not intrepid enough... :-) ...is that login code something that will
break into secret Petagon files? Or some Unix thing? I'm on Win 98.
Cheers!


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