Update 2013-03-14-using-bigmemory-with-rcpp.md

Added the BH dependency to the Rcpp header (required to compile successfully), and added a note about package development (you need C++11 as a SystemRequirement to compile without warnings).
Scott,

You can just add:

// [[Rcpp::plugins(cpp11)]]

Which will ensure that the compiler gets the right flag to indicate that
C++ 11 features should be available.


On Fri, Jul 11, 2014 at 9:42 PM, Dirk Eddelbuettel <notifications@github.com
> wrote:

> In _posts/2013-03-14-using-bigmemory-with-rcpp.md:
>
> >  // [[Rcpp::depends(BH, bigmemory)]]
> >  #include <bigmemory/MatrixAccessor.hpp>
> >
> >  #include <numeric>
> >
> > +// You will also need to add the following to your DESCRIPTION file if
> > +// you're developing a package so that it will compile without warnings:
> > +// SystemRequirements: C++11
> > +
>
> i) Try updating and see what I just committed. Now builds without warnings
> (squashed another one about int / unsigned int)
>
> ii) You are confusing the C++11 language standard (which Rcpp has
> supported for years, I wrote Rcpp Gallery articles 1 1/2 years ago) with
> the Rcpp11 project. This gallery is about Rcpp which allows you to use
> C++11 or any other C++ feature or dialect without imposing one -- in clear
> difference to Rcpp11 which imposes one for its internals.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jjallaire/rcpp-gallery/pull/54/files#r14850845>.
>