Re: [Rcpp-devel] Rcpp::Dimension initialized from an SEXP

2010-05-08 Thread Dirk Eddelbuettel
On 8 May 2010 at 11:32, Douglas Bates wrote: | On Sat, May 8, 2010 at 10:31 AM, Dirk Eddelbuettel wrote: | > | > On 8 May 2010 at 09:21, Douglas Bates wrote: | > | The enclosed section of code using Rcpp::Dimension fails to compile | > | because of the const qualifiers for the simple::nrow and si

Re: [Rcpp-devel] Rcpp::Dimension initialized from an SEXP

2010-05-08 Thread Douglas Bates
On Sat, May 8, 2010 at 10:31 AM, Dirk Eddelbuettel wrote: > > On 8 May 2010 at 09:21, Douglas Bates wrote: > | The enclosed section of code using Rcpp::Dimension fails to compile > | because of the const qualifiers for the simple::nrow and simple::ncol > | method functions.  If you omit those cons

Re: [Rcpp-devel] Rcpp::Dimension initialized from an SEXP

2010-05-08 Thread Dirk Eddelbuettel
On 8 May 2010 at 09:21, Douglas Bates wrote: | The enclosed section of code using Rcpp::Dimension fails to compile | because of the const qualifiers for the simple::nrow and simple::ncol | method functions. If you omit those const qualifiers then it will | compile and behave as desired. Of cours

[Rcpp-devel] Rcpp::Dimension initialized from an SEXP

2010-05-08 Thread Douglas Bates
The enclosed section of code using Rcpp::Dimension fails to compile because of the const qualifiers for the simple::nrow and simple::ncol method functions. If you omit those const qualifiers then it will compile and behave as desired. Of course, I would prefer to have those method functions use t

Re: [Rcpp-devel] Compiler error I can't understand

2010-05-08 Thread Dirk Eddelbuettel
On 8 May 2010 at 11:31, Romain Francois wrote: | Hi, | | Without seeing the actual code, it looks like a candidate for | const_cast. See for example: | http://www.cplusplus.com/doc/tutorial/typecasting/ Yes, I briefly hinted the same last eve off-list from my phone. As the aforementioned 'C++

Re: [Rcpp-devel] Compiler error I can't understand

2010-05-08 Thread Douglas Bates
On Sat, May 8, 2010 at 4:31 AM, Romain Francois wrote: > Hi, > > Without seeing the actual code, it looks like a candidate for const_cast. > See for example: http://www.cplusplus.com/doc/tutorial/typecasting/ > > If you indeed create a stripped down example, I'll look into it. Thanks, Romain. I

Re: [Rcpp-devel] Compiler error I can't understand

2010-05-08 Thread Romain Francois
Hi, Without seeing the actual code, it looks like a candidate for const_cast. See for example: http://www.cplusplus.com/doc/tutorial/typecasting/ If you indeed create a stripped down example, I'll look into it. Romain Le 08/05/10 00:20, Douglas Bates a écrit : The lme4a package (available