Hi

On 04/09/2013 09:51 AM, Kirill Müller wrote:
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);

After setting up a proper C++ editor with autocompletion, I found Vector<T>::get_na() and finally traits::get_na(). But this is no compile-time constant, is it? Same applies to is_na(). I wonder if it makes sense at all to have these available at compile time...



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

Reply via email to