| 920 | |
| 921 | template <typename T, typename U> |
| 922 | inline const typename vc_rebind_promote<T,U,2>::type operator+ ( |
| 923 | const vector<T,2>& lhs, |
| 924 | const vector<U,2>& rhs |
| 925 | ) |
| 926 | { |
| 927 | typedef typename vc_rebind_promote<T,U,2>::type ret_type; |
| 928 | return ret_type(lhs.x()+rhs.x(), lhs.y()+rhs.y()); |
| 929 | } |
| 930 | |
| 931 | // ---------------------------------------------------------------------------------------- |
| 932 |