From luke-tierney @ending from uiow@@edu  Tue Oct  9 05:09:01 2018
From: luke-tierney @ending from uiow@@edu (Tierney, Luke)
Date: Tue, 9 Oct 2018 03:09:01 +0000
Subject: [Rd] R_ext/Altrep.h should be more C++-friendly
In-Reply-To: <CAHPe-e8S9Gp1jnx5=Uu2jjJc1kn6XOjB=1ie4iuMzL3bXTcnJQ@mail.gmail.com>
References: <CAHPe-e8S9Gp1jnx5=Uu2jjJc1kn6XOjB=1ie4iuMzL3bXTcnJQ@mail.gmail.com>
Message-ID: <alpine.DEB.2.21.1810082208350.3154-896@luke-Latitude-7480>

Thanks for the suggestion. Committed in R_devel.

Best,

luke

On Mon, 8 Oct 2018, Michael Sannella wrote:

> I am not able to #include "R_ext/Altrep.h" from a C++ file.? I think
> it needs two changes:
> 
> 1. add the same __cplusplus check as most of the other header files:
> ? ? #ifdef? __cplusplus
> ? ? extern "C" {
> ? ? #endif
> ? ? ? ? ...
> ? ? #ifdef? __cplusplus
> ? ? }
> ? ? #endif
> 
> 2. change the line
> ? ? R_new_altrep(R_altrep_class_t class, SEXP data1, SEXP data2);
> ?to
> ? ? R_new_altrep(R_altrep_class_t cls, SEXP data1, SEXP data2);
> ?since C++ doesn't like an argument named 'class'
> 
> ? ~~ Michael Sannella
> 
> 
>

-- 
Luke Tierney
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:   luke-tierney at uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu


[Rd] R_ext/Altrep.h should be more C++-friendly
Tierney, Luke