Open vspinu opened 2 years ago
Relatedly automatic promotion to double does not work:
void c_test(cpp11::logicals t1, cpp11::logicals t2) {
/* std::min(t1[0],t2[0]); */
double x = t1[0];
}
// error: conversion from ‘cpp11::r_bool’ to ‘double’ is ambiguous
Other missing methods on r_bool and double +=
, -=
, -
, *=
, *
.
Not sure what to do with this. This limitation inhibits development of generic code on doubles, integers and logicals simultaneously.
With the following file
I get