From 1c082e1ff8e5805f08a6077adc6973fa228f53cb Mon Sep 17 00:00:00 2001 From: Florian Weik Date: Tue, 20 Sep 2016 16:37:46 -0600 Subject: [PATCH] specialization of is_mpi_datatype for std::array --- include/boost/mpi/datatype.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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))