[R-pkg-devel] C++11 and deprecated warnings "noise" for auto_ptr

Steven Scott @teve@the@b@ye@i@n @ending from gm@il@com
Thu Jul 19 19:00:34 CEST 2018


Thanks Dirk,
This will cut down the size of my compilation logs dramatically.


On Thu, Jul 19, 2018 at 6:06 AM Iñaki Úcar <i.ucar86 using gmail.com> wrote:

> Great! Many thanks for sharing this, Dirk.
>
> Iñaki
> El jue., 19 jul. 2018 a las 14:37, Dirk Eddelbuettel
> (<edd using debian.org>) escribió:
> >
> >
> > As some of you may have noticed, or may have been told as well in kind
> "fix
> > this or else ..." email, 'R CMD check' now also marks g++-7 / g++-8
> warnings
> > of 'deprecated declarations'.
> >
> > This can of course be addressed in the code itself, or suppressed with
> the
> > '-Wno-deprecated-declarations' flag in compiler options in eg
> ~/.R/Makevars.
> >
> > A particularly annoying case is in all the code depending on Boost
> headers
> > and using eg our BH package. I just installed an updated new package from
> > CRAN and again had screens full of warnings for 'deprecated
> std::auto_ptr'.
> >
> > Looking at the Boost header file, it turns out that for this case one
> can use
> > the '-DBOOST_NO_AUTO_PTR' define and the compilation will be silent! So
> those
> > of us using Boost and BH could add the define to the headers.
> >
> > Dirk
> >
> > --
> > http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
> >
> > ______________________________________________
> > R-package-devel using r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
>
>
> --
> Iñaki Úcar
> http://www.enchufa2.es
> @Enchufa2
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list