On Mon, Feb 1, 2016 at 4:29 AM, Frédéric Wang <fred.w...@free.fr> wrote:

> I tried updating the source code of WOFF2 to the latest upstream
> version. Unfortunately, try server builds fail on OSX and mobile devices
> because the C++11 class std::unique_ptr does not seem to be available.
> IIUC some bugzilla entries and older threads on this mailing list, at
> the moment only some of the C++11 features are usable in the mozilla
> build system. Does any of the build engineer know whether
> std::unique_ptr can be made easily available? Or should we just patch
> the WOFF2 library to use of std::vector (as was done in earlier version)


We're working on moving all of our platforms to use a C++11-ish standard
library.  For std::unique_ptr, at least, the best tack is to write a small
polyfill based on mfbt/UniquePtr.h.  (It's not clear to me how your
suggestion with std::vector applies here.)  If our UniquePtr isn't a
drop-in replacement for std::unique_ptr, that's worthy of a bug report.

-Nathan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to