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

Fix compiler warning caused by implicit string conversion with Xcode 4.6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9
    • 0.9
    • C++ - Library
    • None
    • Building w/ clang as shipped with Xcode 4.6

    • Patch Available

    Description

      Clang doesn't do the implicit char[] -> std::string conversion before evaluating the + operator in the following statement (and even if it did, it would complain that there is no string::operator+ defined for a non-character integral type.

          int8_t type;
          //...
          throw TException("don't know what type: " + type);
      

      Attachments

        Activity

          People

            jfarrell Jake Farrell
            nater Nate Rosenblum
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: