error_string.hpp 658 B

1234567891011121314151617181920212223242526
  1. // Copyright (C) 2018 Alain Miniussi <alain.miniussi -at- oca.eu>.
  2. // Use, modification and distribution is subject to the Boost Software
  3. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. /** @file error_string.hpp
  6. *
  7. * Error code to string convertion.
  8. */
  9. #ifndef BOOST_MPI_ERROR_STRING_HPP
  10. #define BOOST_MPI_ERROR_STRING_HPP
  11. #include <boost/mpi/config.hpp>
  12. #include <string>
  13. namespace boost { namespace mpi {
  14. /**
  15. * @brief Convert a MPI error code to an error string.
  16. */
  17. std::string error_string(int err_code);
  18. } } // end namespace boost::mpi
  19. #endif // BOOST_MPI_ERROR_STRING_HPP