summaryrefslogtreecommitdiff
path: root/boost/mpi/detail/broadcast_sc.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/mpi/detail/broadcast_sc.hpp')
-rw-r--r--boost/mpi/detail/broadcast_sc.hpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/boost/mpi/detail/broadcast_sc.hpp b/boost/mpi/detail/broadcast_sc.hpp
index c84da662a2..51a8dff62d 100644
--- a/boost/mpi/detail/broadcast_sc.hpp
+++ b/boost/mpi/detail/broadcast_sc.hpp
@@ -14,14 +14,6 @@
namespace boost { namespace mpi {
template<typename T>
-inline void
-broadcast(const communicator& comm, skeleton_proxy<T>& proxy, int root)
-{
- const skeleton_proxy<T>& const_proxy(proxy);
- broadcast(comm, const_proxy, root);
-}
-
-template<typename T>
void
broadcast(const communicator& comm, const skeleton_proxy<T>& proxy, int root)
{
@@ -36,6 +28,15 @@ broadcast(const communicator& comm, const skeleton_proxy<T>& proxy, int root)
}
}
+template<typename T>
+inline void
+broadcast(const communicator& comm, skeleton_proxy<T>& proxy, int root)
+{
+ const skeleton_proxy<T>& const_proxy(proxy);
+ broadcast(comm, const_proxy, root);
+}
+
+
} } // end namespace boost::mpi
#endif // BOOST_MPI_BROADCAST_SC_HPP