Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86713 - trunk/libs/mpi/src/python
From: troyer_at_[hidden]
Date: 2013-11-15 14:25:21


Author: troyer
Date: 2013-11-15 14:25:20 EST (Fri, 15 Nov 2013)
New Revision: 86713
URL: http://svn.boost.org/trac/boost/changeset/86713

Log:
Fixed #9356

Deleted:
   trunk/libs/mpi/src/python/exception.cpp

Deleted: trunk/libs/mpi/src/python/exception.cpp
==============================================================================
--- trunk/libs/mpi/src/python/exception.cpp 2013-11-15 14:25:20 EST (Fri, 15 Nov 2013) (r86712)
+++ /dev/null 00:00:00 1970 (deleted)
@@ -1,55 +0,0 @@
-// Copyright (C) 2006 Douglas Gregor <doug.gregor -at- gmail.com>
-// Copyright (C) 2005 The Trustees of Indiana University.
-
-// Use, modification and distribution is subject to the Boost Software
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-
-// Authors: Douglas Gregor
-
-/** @file exception.cpp
- *
- * This file reflects the Boost.MPI @c mpi_error class into
- * Python.
- */
-#include <boost/python.hpp>
-#include <boost/mpi/exception.hpp>
-#include <string>
-#include <boost/lexical_cast.hpp>
-#include "utility.hpp"
-
-using namespace boost::python;
-using namespace boost::mpi;
-
-namespace boost { namespace mpi { namespace python {
-
-extern const char* exception_docstring;
-extern const char* exception_what_docstring;
-extern const char* exception_routine_docstring;
-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()));
-}
-
-void export_exception()
-{
- using boost::python::arg;
- using boost::python::object;
-
- object type =
- class_<exception>
- ("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,
- exception_result_code_docstring)
- .def("__str__", &exception_str)
- ;
- translate_exception<exception>::declare(type);
-}
-
-} } } // end namespace boost::mpi::python


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