You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Henrique Mendonça (JIRA)" <ji...@apache.org> on 2013/09/10 22:09:52 UTC

[jira] [Updated] (THRIFT-2048) Prefer boolean context to nullptr_t conversion

     [ https://issues.apache.org/jira/browse/THRIFT-2048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henrique Mendonça updated THRIFT-2048:
--------------------------------------

    Assignee: Henrique Mendonça
    
> Prefer boolean context to nullptr_t conversion
> ----------------------------------------------
>
>                 Key: THRIFT-2048
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2048
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.9
>         Environment: Building with -std=c++0x or c++11
>            Reporter: Nate Rosenblum
>            Assignee: Henrique Mendonça
>            Priority: Trivial
>         Attachments: 0001-Prefer-boolean-context-to-nullptr_t-conversion.patch
>
>
> Implicit conversion from NULL -> nullptr generates a warning in contemporary c++. Instead, prefer evaluating shared_ptr in boolean context to check for null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira