Given a set of properties for the destination (0,1,3,5) it copy the source properties (0,1,2,3)
More...
template<typename v_src, typename v_dst, int... prp>
struct object_s_di< v_src, v_dst, OBJ_NORMAL, prp...>
Given a set of properties for the destination (0,1,3,5) it copy the source properties (0,1,2,3)
Object copy example
typedef Point_test<float>::type vboost;
typedef object_creator<Point_test<float>::type,0,1,4>::type vboost_red;
object<vboost> src;
object<vboost_red> dst;
boost::fusion::at_c<p::x>(src.data) = 1.0;
boost::fusion::at_c<p::y>(src.data) = 2.0;
for (size_t i = 0 ; i < 3 ; i++)
boost::fusion::at_c<p::v>(src.data)[i] = i + 5.0;
BOOST_REQUIRE_EQUAL(boost::fusion::at_c<0>(dst.data),1.0);
BOOST_REQUIRE_EQUAL(boost::fusion::at_c<1>(dst.data),2.0);
for (size_t i = 0 ; i < 3 ; i++)
BOOST_REQUIRE_EQUAL(boost::fusion::at_c<2>(dst.data)[i],i + 5.0);
Definition at line 159 of file object_s_di.hpp.