[Rcpp-devel] IntegerVector initialization

Romain François romain at r-enthusiasts.com
Sun Jan 15 11:43:13 CET 2012


Le 12/01/12 11:29, Gregor Kastner a écrit :
> This is a minor thing but caused some confusion to me:
>
> IntegerVector foo1(2, 4.0);  // works
> IntegerVector foo2(2, 4);    // throws error
>
> while
>
> IntegerVector bar1 = IntegerVector::create(4.0, 4.0);  // works
> IntegerVector bar2 = IntegerVector::create(4, 4);      // works
>
> Bug or feature?
>
> Best,
> /g
This should be fixed in rev 3440.

This was due to some compiler ambiguities, so I just added some 
disambiguation.

Romain

-- 
Romain Francois
Professional R Enthusiast
http://romainfrancois.blog.free.fr



More information about the Rcpp-devel mailing list