Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73425 - in trunk/boost/graph: . distributed distributed/detail
From: jewillco_at_[hidden]
Date: 2011-07-28 21:44:48


Author: jewillco
Date: 2011-07-28 21:44:48 EDT (Thu, 28 Jul 2011)
New Revision: 73425
URL: http://svn.boost.org/trac/boost/changeset/73425

Log:
Removed calls to exit(); fixes #5185
Text files modified:
   trunk/boost/graph/distributed/adjacency_list.hpp | 2 +-
   trunk/boost/graph/distributed/detail/mpi_process_group.ipp | 4 ++--
   trunk/boost/graph/read_dimacs.hpp | 3 +--
   3 files changed, 4 insertions(+), 5 deletions(-)

Modified: trunk/boost/graph/distributed/adjacency_list.hpp
==============================================================================
--- trunk/boost/graph/distributed/adjacency_list.hpp (original)
+++ trunk/boost/graph/distributed/adjacency_list.hpp 2011-07-28 21:44:48 EDT (Thu, 28 Jul 2011)
@@ -2931,7 +2931,7 @@
       return std::make_pair(edge_descriptor(), false);
     } else {
       BOOST_ASSERT(false);
- exit(1);
+ abort();
     }
   }
 

Modified: trunk/boost/graph/distributed/detail/mpi_process_group.ipp
==============================================================================
--- trunk/boost/graph/distributed/detail/mpi_process_group.ipp (original)
+++ trunk/boost/graph/distributed/detail/mpi_process_group.ipp 2011-07-28 21:44:48 EDT (Thu, 28 Jul 2011)
@@ -725,7 +725,7 @@
             process_id(pg), source, tag, pg.my_block_number());
 
     BOOST_ASSERT(false);
- exit(1);
+ abort();
   }
 }
 
@@ -746,7 +746,7 @@
             process_id(pg), source, tag, pg.my_block_number());
 
     BOOST_ASSERT(false);
- exit(1);
+ abort();
   }
 }
 

Modified: trunk/boost/graph/read_dimacs.hpp
==============================================================================
--- trunk/boost/graph/read_dimacs.hpp (original)
+++ trunk/boost/graph/read_dimacs.hpp 2011-07-28 21:44:48 EDT (Thu, 28 Jul 2011)
@@ -281,8 +281,7 @@
   std::printf ( "\nline %ld of input - %s\n",
                 no_lines, err_message[err_no] );
 
- std::exit (1);
- return (0); /* to avoid warning */
+ return -1;
 }
 /* -------------------- end of parser -------------------*/
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk