On Wed, Sep 26, 2012 at 2:41 PM, Henri Sivonen <[email protected]> wrote: > On Fri, Sep 21, 2012 at 5:22 PM, Rafael Ávila de Espíndola > <[email protected]> wrote: >> In code that uses c++11 you can use >> >> typedef decltype(nullptr) foobar; > > This seems to work. Thanks. ... > typedef decltype(nullptr) jArray_nullptr_t; > void operator=(jArray_nullptr_t zero) {
Actually, this still causes warnings. In GCC 4.6.3 decltype(nullptr) seems to be long int rather than std::nullptr_t. Sigh. -- Henri Sivonen [email protected] http://hsivonen.iki.fi/ _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

