Hi
What is the best way to determine the NA value for a specific type given
the type identifier (as returned by TYPEOF()), preferably as a
compile-time constant?
I'm looking for something along the following lines:
static_assert(NA_traits<REALSXP>::value == NA_REAL);
static_assert(NA_traits<LGLSXP>::value == NA_LOGICAL);
Thanks.
Cheers
Kirill
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel