On Wed, Sep 26, 2012 at 2:41 PM, Henri Sivonen <hsivo...@iki.fi> wrote:
> On Fri, Sep 21, 2012 at 5:22 PM, Rafael Ávila de Espíndola
> <respind...@mozilla.com> 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
hsivo...@iki.fi
http://hsivonen.iki.fi/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to