| 1062 | // we are importing a real sugar expression, i.e. not a vector |
| 1063 | template <bool NA, typename VEC> |
| 1064 | inline void import_sugar_expression( const Rcpp::VectorBase<RTYPE,NA,VEC>& other, traits::false_type ) { |
| 1065 | RCPP_DEBUG_4( "Vector<%d>::import_sugar_expression( VectorBase<%d,%d,%s>, false_type )", RTYPE, NA, RTYPE, DEMANGLE(VEC) ) ; |
| 1066 | R_xlen_t n = other.size() ; |
| 1067 | Storage::set__( Rf_allocVector( RTYPE, n ) ) ; |
| 1068 | import_expression<VEC>( other.get_ref() , n ) ; |
| 1069 | } |
| 1070 | |
| 1071 | // we are importing a sugar expression that actually is a vector |
| 1072 | template <bool NA, typename VEC> |