@@ -160,50 +160,50 @@ namespace Rcpp{
160160
161161 typedef Language_Impl<PreserveStorage> Language ;
162162
163- template <typename OUT =SEXP>
163+ template <typename RESULT_TYPE =SEXP>
164164 class fixed_call {
165165 public:
166- typedef OUT result_type ;
166+ typedef RESULT_TYPE result_type ;
167167
168168 fixed_call ( Language call_ ) : call(call_){}
169169 fixed_call ( Function fun ) : call(fun){}
170170
171- OUT operator ()(){
172- return as<OUT >( call.eval () ) ;
171+ RESULT_TYPE operator ()(){
172+ return as<RESULT_TYPE >( call.eval () ) ;
173173 }
174174
175175 private:
176176 Language call ;
177177 } ;
178178
179- template <typename T, typename OUT = SEXP>
180- class unary_call : public std ::unary_function<T,OUT > {
179+ template <typename T, typename RESULT_TYPE = SEXP>
180+ class unary_call : public std ::unary_function<T,RESULT_TYPE > {
181181 public:
182182 unary_call ( Language call_ ) : call(call_), proxy(call_,1 ) {}
183183 unary_call ( Language call_, int index ) : call(call_), proxy(call_,index){}
184184 unary_call ( Function fun ) : call( fun, R_NilValue), proxy(call,1 ) {}
185185
186- OUT operator ()( const T& object ){
186+ RESULT_TYPE operator ()( const T& object ){
187187 proxy = object ;
188- return as<OUT >( call.eval () ) ;
188+ return as<RESULT_TYPE >( call.eval () ) ;
189189 }
190190
191191 private:
192192 Language call ;
193193 Language::Proxy proxy ;
194194 } ;
195195
196- template <typename T1, typename T2, typename OUT = SEXP>
197- class binary_call : public std ::binary_function<T1,T2,OUT > {
196+ template <typename T1, typename T2, typename RESULT_TYPE = SEXP>
197+ class binary_call : public std ::binary_function<T1,T2,RESULT_TYPE > {
198198 public:
199199 binary_call ( Language call_ ) : call(call_), proxy1(call_,1 ), proxy2(call_,2 ) {}
200200 binary_call ( Language call_, int index1, int index2 ) : call(call_), proxy1(call_,index1), proxy2(call_,index2){}
201201 binary_call ( Function fun) : call(fun, R_NilValue, R_NilValue), proxy1(call,1 ), proxy2(call,2 ){}
202202
203- OUT operator ()( const T1& o1, const T2& o2 ){
203+ RESULT_TYPE operator ()( const T1& o1, const T2& o2 ){
204204 proxy1 = o1 ;
205205 proxy2 = o2 ;
206- return as<OUT >( call.eval () ) ;
206+ return as<RESULT_TYPE >( call.eval () ) ;
207207 }
208208
209209 private:
0 commit comments