diff --git a/include/boost/mpi/datatype.hpp b/include/boost/mpi/datatype.hpp index c26dfdf..1f06997 100644 --- a/include/boost/mpi/datatype.hpp +++ b/include/boost/mpi/datatype.hpp @@ -30,6 +30,10 @@ #include #include // for std::pair +#if defined(__cplusplus) && (201103L <= __cplusplus) +#include +#endif + namespace boost { namespace mpi { /** @@ -265,6 +269,15 @@ struct is_mpi_datatype > { }; +/// specialization of is_mpi_datatype for arrays +#if defined(__cplusplus) && (201103L <= __cplusplus) +template +struct is_mpi_datatype > + : public is_mpi_datatype +{ +}; +#endif + // Define wchar_t specialization of is_mpi_datatype, if possible. #if !defined(BOOST_NO_INTRINSIC_WCHAR_T) && \ (defined(MPI_WCHAR) || (defined(MPI_VERSION) && MPI_VERSION >= 2))