romainfrancois commented on pull request #8256:
URL: https://github.com/apache/arrow/pull/8256#issuecomment-698983439


   started to get away from the R function `shared_ptr()`. Not handling all 
cases yet, eventually this: 
   
   ```cpp
   template <typename T>
   SEXP as_sexp(const std::shared_ptr<T>& ptr) {
     return cpp11::external_pointer<std::shared_ptr<T>>(new 
std::shared_ptr<T>(ptr));
   }
   ```
   
   will disappear and we'll have individual functions for each as generated by 
some macro. 
   
   I'm not clear yet about the classes that are currently handled with 
`$..dispatch()` methods in R. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to