//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. //Distributed under the Boost Software License, Version 1.0. (See accompanying //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef UUID_185557CE385511E780ACD7B781262D2E #define UUID_185557CE385511E780ACD7B781262D2E #include #include #include namespace boost { namespace qvm { namespace qvm_detail { template struct assign_vv_defined { static bool const value=false; }; template struct copy_vector_elements { template static void f( A & a, B const & b ) { vec_traits::template write_element(a)=vec_traits::template read_element(b); copy_vector_elements::f(a,b); } }; template struct copy_vector_elements { template static void f( A &, B const & ) { } }; } template inline typename boost::enable_if_c< is_vec::value && is_vec::value && vec_traits::dim==vec_traits::dim && !qvm_detail::assign_vv_defined::dim>::value, A &>::type assign( A & a, B const & b ) { qvm_detail::copy_vector_elements<0,vec_traits::dim>::f(a,b); return a; } } } #endif