From 26e4455974f269d2e459ad84e547f0f4810c2417 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Wed, 7 Sep 2022 20:24:13 -0500 Subject: [PATCH] Updating RcppArmadillo initialization This one-line change updates RcppArmadillo from the now deprecated `<<` initialization to brace initialization allowed since C++11 and long been the minimal standard with R too. It would be great if you could merge this, and release and updated package "in the next little while" -- see the two prior emails I sent, and the transition log at RcppCore/RcppArmadillo#391 --- src/HarDatacreationC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HarDatacreationC.cpp b/src/HarDatacreationC.cpp index 750c573..25f87cf 100644 --- a/src/HarDatacreationC.cpp +++ b/src/HarDatacreationC.cpp @@ -40,7 +40,7 @@ arma::mat HARDataCreationC(arma::vec vRealizedMeasure , arma::vec vPeriods, int arma::mat HARMatCombine(arma::mat mA, arma::mat mB){ int iRowsA = mA.n_rows; int iRowsB = mB.n_rows; - arma:: vec vFoo(2); vFoo << iRowsA << iRowsB < iRowsB){ mA.shed_rows(0, iRowsA-iRowsB-1);