Re: [Rd] CXX_STD and configure.ac in packages

2014-03-31 Thread Martin Morgan
of Romain Francois [rom...@r-enthusiasts.com] Sent: 31 March 2014 08:22 To: Martin Morgan Cc: R-devel Subject: Re: [Rd] CXX_STD and configure.ac in packages Hi, My advice would be to use SystemRequirements: C++11 As is definitely a part of C++11, assuming this version of the standard gives it

Re: [Rd] CXX_STD and configure.ac in packages

2014-03-31 Thread Romain François
n available. But from >> a global perspective you should think of >> C++98 and C++11 as two different languages. >> >> Martyn >> >> >> From: r-devel-boun...@r-project.org [r-devel-boun...@r-project.org] on >> behalf of

Re: [Rd] CXX_STD and configure.ac in packages

2014-03-31 Thread Martyn Plummer
om...@r-enthusiasts.com] > Sent: 31 March 2014 08:22 > To: Martin Morgan > Cc: R-devel > Subject: Re: [Rd] CXX_STD and configure.ac in packages > > Hi, > > My advice would be to use SystemRequirements: C++11 > > As is definitely a part of C++11, assuming this version of

Re: [Rd] CXX_STD and configure.ac in packages

2014-03-31 Thread Martyn Plummer
11 as two different languages. Martyn From: r-devel-boun...@r-project.org [r-devel-boun...@r-project.org] on behalf of Romain Francois [rom...@r-enthusiasts.com] Sent: 31 March 2014 08:22 To: Martin Morgan Cc: R-devel Subject: Re: [Rd] CXX_STD and configu

Re: [Rd] CXX_STD and configure.ac in packages

2014-03-30 Thread Romain Francois
Hi, My advice would be to use SystemRequirements: C++11 As is definitely a part of C++11, assuming this version of the standard gives it to you. Your package may not compile on platforms where a C++11 compiler is not available, but perhaps if this becomes a pattern, then such compilers will

Re: [Rd] CXX_STD and configure.ac in packages

2014-03-30 Thread Dirk Eddelbuettel
Hi Martin, On 30 March 2014 at 12:50, Martin Morgan wrote: | In C++ code for use in a R-3.1.0 package, my specific problem is that I would | like to use if it is available, or if not, | or if all else fails. This non-standardization over the last decade caused a lot of headaches. We do

[Rd] CXX_STD and configure.ac in packages

2014-03-30 Thread Martin Morgan
In C++ code for use in a R-3.1.0 package, my specific problem is that I would like to use if it is available, or if not, or if all else fails. I (think I) can accomplish this with configure.ac as AC_INIT("DESCRIPTION") CXX=`"${R_HOME}/bin/R" CMD config CXX` CXXFLAGS=`"${R_HOME}/bin/R" CMD