Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2048

Prefer boolean context to nullptr_t conversion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.9
    • 0.9.2
    • C++ - Library
    • None
    • Building with -std=c+0x or c+11

    • Patch Available

    Description

      Implicit conversion from NULL -> nullptr generates a warning in contemporary c++. Instead, prefer evaluating shared_ptr in boolean context to check for null.

      Attachments

        Activity

          People

            henrique Henrique Mendonca
            nater Nate Rosenblum
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: