<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi<br>
<br>
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?<br>
<br>
I'm looking for something along the following lines:<br>
<br>
static_assert(NA_traits<REALSXP>::value == NA_REAL);<br>
static_assert(NA_traits<LGLSXP>::value == NA_LOGICAL);<br>
<br>
Thanks.<br>
<br>
<br>
Cheers<br>
<br>
Kirill<br>
</body>
</html>