Message-ID: <20167.8126.72027.917083@max.nulle.part>
Date: 2011-11-19T03:17:18Z
From: Dirk Eddelbuettel
Subject: [Rcpp-devel] RcppEigen questions
In-Reply-To: <20167.2452.413401.141386@max.nulle.part>
On 18 November 2011 at 19:42, Dirk Eddelbuettel wrote:
| 2) I have never seen an idiom
|
| SomeType amc{a};
|
| using curly braces for initializers. I may be behind the times here. Can
| you point me to some documentation which shows this to be legit?
Hao and I continued this off-list for a bit more, and that is indeed legit
once you use '-std=c++0x' with a recent g++ version. Eg I just tried
std::vector<double> y{ 1.1, 2.2};
and this constructor-initialization form (which I hadn't seen, or forgotten
about) passes fine.
Too bad we can't yet use -std=c++0x on CRAN submissions....
Dirk
--
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx