[Rd] Use of restricted c++ keywords as variable names in headers

Travers Ching tr@ver@c @end|ng |rom gm@||@com
Fri Jul 19 19:00:27 CEST 2019


I was trying to use one of the headers in R_ext/, but had trouble.  I
determined that it was due to using restricted keywords as variable names.
So to load in the header, I needed to do this:

#define class klass
#define private krivate
#include <R_ext/Connections.h>
#undef class
#undef private

I know that the altrep.h header previously had the same issue, but was
fixed.  Could this be changed as well?

	[[alternative HTML version deleted]]



More information about the R-devel mailing list