2
0
mirror of https://github.com/boostorg/mpi.git synced 2026-02-26 04:42:23 +00:00

Moved Serialization and MPI fixes and updates from trunk to release branch

[SVN r46743]
This commit is contained in:
Matthias Troyer
2008-06-26 19:25:44 +00:00
parent 4bd63be33a
commit 97e9366a2f
39 changed files with 985 additions and 206 deletions

View File

@@ -30,9 +30,8 @@ extern const char* exception_result_code_docstring;
str exception_str(const exception& e)
{
return str("MPI routine `" + std::string(e.routine()) +
"' returned error code " +
lexical_cast<std::string>(e.result_code()));
return str(std::string(e.what()) +
" (code " + lexical_cast<std::string>(e.result_code())+")");
}
void export_exception()
@@ -42,10 +41,10 @@ void export_exception()
object type =
class_<exception>
("exception", exception_docstring, no_init)
("Exception", exception_docstring, no_init)
.add_property("what", &exception::what, exception_what_docstring)
.add_property("routine", &exception::what, exception_routine_docstring)
.add_property("result_code", &exception::what,
.add_property("result_code", &exception::result_code,
exception_result_code_docstring)
.def("__str__", &exception_str)
;