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

2010-05-10 Thread Douglas Bates
On Mon, May 10, 2010 at 8:32 AM, Romain Francois wrote: > > Le 10/05/10 15:06, Romain Francois a écrit : >> >> Le 10/05/10 14:13, Romain Francois a écrit : >>> >>> Le 08/05/10 16:21, Douglas Bates a écrit : The enclosed section of code using Rcpp::Dimension fails to compile because

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

2010-05-10 Thread Romain Francois
Le 10/05/10 15:06, Romain Francois a écrit : Le 10/05/10 14:13, Romain Francois a écrit : Le 08/05/10 16:21, Douglas Bates a écrit : 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 y

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

2010-05-10 Thread Romain Francois
Le 10/05/10 14:13, Romain Francois a écrit : Le 08/05/10 16:21, Douglas Bates a écrit : 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 com

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

2010-05-10 Thread Romain Francois
Le 08/05/10 16:21, Douglas Bates a écrit : 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 woul

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