Skip to content

Commit

Permalink
modified: bassert.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
peeterjoot committed Apr 22, 2016
1 parent cc9f339 commit 42b4c0f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion phy1610-scientific-computing/bassert/bassert.cc
@@ -1,11 +1,19 @@
/** \file bassert.cc */
#include <boost/exception/diagnostic_information.hpp>
#include "myexceptions.h"
#include <iostream>

int main( int argc, char ** argv )
{
try {
ASSERT_DATA_INT( argc == 0, argc ) ;
auto expected{7} ;

// ASSERT_DATA_INT_INT( argc == expected, argc, expected ) ;
::boost::exception_detail::throw_exception_(
assert_error()
<< intdata_info( argc )
<< intdata2_info( expected )
,__PRETTY_FUNCTION__,"bassert.cc",11) ;
}
catch ( boost::exception & e )
{
Expand Down

0 comments on commit 42b4c0f

Please sign in to comment.