Re: [Rcpp-devel] Call to function through pointer to incorrect function type on UBSAN

2017-07-12 Thread Dirk Eddelbuettel
On 12 July 2017 at 22:00, Helske, Jouni wrote: | I submitted bssm again to CRAN and claimed that the issue is with clang 4.0.0, but CRAN just updated to clang 4.0.1 and the issue remains (and there is also a new issue...). | | But, while implementing new stuff which also use Xptr, I realized th

Re: [Rcpp-devel] Call to function through pointer to incorrect function type on UBSAN

2017-07-12 Thread Helske, Jouni
Thanks Kevin, I submitted bssm again to CRAN and claimed that the issue is with clang 4.0.0, but CRAN just updated to clang 4.0.1 and the issue remains (and there is also a new issue...). But, while implementing new stuff which also use Xptr, I realized that I can somewhat streamline my previo

Re: [Rcpp-devel] passing a bit64 vector to C++ and returning it

2017-07-12 Thread Dirk Eddelbuettel
On 12 July 2017 at 08:40, David Bellot wrote: | > | > Have you seen my 'nanotime' package? It does just that: provide nanosecond | >> resolution by relying on RcppCCTZ for the parsing/formating and int64 for | >> the | >> storage. | >> | > | ​Yes I use nanotime now. Excellent package. Thanks! H

Re: [Rcpp-devel] passing a bit64 vector to C++ and returning it

2017-07-12 Thread David Bellot
> > Have you seen my 'nanotime' package? It does just that: provide nanosecond >> resolution by relying on RcppCCTZ for the parsing/formating and int64 for >> the >> storage. >> > ​Yes I use nanotime now. Excellent package. Also the solution to cast numericvector to long long is perfect too, as I