提交 7e59027d 编写于 作者: M Marius Muja

Marking ResultsMerge as commutative

上级 fd7cfc82
......@@ -49,6 +49,7 @@ struct SearchResults
template<typename Archive>
void serialize(Archive& ar, const unsigned int version)
{
boost::mpi::communicator world;
ar& indices.rows;
ar& indices.cols;
if (Archive::is_loading::value) {
......@@ -264,10 +265,11 @@ int Index<Distance>::radiusSearch(const flann::Matrix<ElementType>& query, flann
}
} //namespace flann::mpi
//namespace boost { namespace mpi {
// template<>
// struct is_commutative<flann::mpi::ResultsMerger, flann::mpi::SearchResults> : mpl::true_ { };
//} } // end namespace boost::mpi
namespace boost { namespace mpi {
template<>
template<typename DistanceType>
struct is_commutative<flann::mpi::ResultsMerger<DistanceType>, flann::mpi::SearchResults<DistanceType> > : mpl::true_ { };
} } // end namespace boost::mpi
#endif /* FLANN_MPI_HPP_ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册