8 #ifndef OPENFPM_DATA_SRC_UTIL_COPY_GENERAL_HPP_
9 #define OPENFPM_DATA_SRC_UTIL_COPY_GENERAL_HPP_
11 #include "util/common.hpp"
12 #include "util/util_debug.hpp"
13 #include "copy_compare_aggregates.hpp"
14 #include "util/for_each_ref.hpp"
15 #include <boost/mpl/range_c.hpp>
23 template<typename T, unsigned int agg=2 * is_openfpm_native<T>::value + std::is_copy_assignable<T>::value>
34 std::cerr <<
"Error: " << __FILE__ <<
":" << __LINE__ << demangle(
typeid(T).name()) <<
" does not have an operator= and is not an aggregate or an openfpm native structure, copy is not possible" <<
"\n";
70 boost::mpl::for_each_ref<boost::mpl::range_c<int,0,T::max_prop>>(cp);
Structure to copy aggregates.
copy_general(const T &src, T &dst)
copy objects that has an operator= (implicit or explicit)
structure to copy aggregates
copy_general(const T &src, T &dst)
copy objects that are aggregates but define an operator=
copy_general(const T &src, T &dst)
Spacialization when there is unknown copy method.
copy_general(const T &src, T &dst)
copy objects that are aggregates