Skip to content
Back to formatted view

Raw Message

Message-ID: <CAPLMX9E2ouZTo3Z6u7UZqes=oS-aYpAUOxZzC=n_1EyYqKR51g@mail.gmail.com>
Date: 2019-07-19T17:00:27Z
From: Travers Ching
Subject: Use of restricted c++ keywords as variable names in headers
In-Reply-To: <6dd8f2c2-972b-48f2-e68b-da10bc6e76b6@sapo.pt>

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]]