Hi Constantinos, I believe you could just put the following in your DESCRIPTION file so the R version takes care of the C++11 flag.
SystemRequirements: C++11 Regards, Charles On Fri, Sep 30, 2016 at 8:46 AM, Costas Tsirogiannis <[email protected]> wrote: > Greetings, > > I am developing a package that uses C++ code, and I want to use some > classes from the C++11 standard. In fact I just want to use std::thread > which is supported even by the old weird -std=c++0x option. Since the > support of the C++11 standard increases more and more as time goes by, I > would like to ask what is the best flag that I should use in the Makevars > file so as to make my package portable with as many as possible available > compilers? Should it be std=c++0x or std=c++11, or some other option ? > > thanks, > > --Constantinos > > [[alternative HTML version deleted]] > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > [[alternative HTML version deleted]] ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
