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

using 'using' to disambiguate between functions in different bases does not conform to C++ standard and will not compile on certain compilers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.6
    • 0.7
    • C++ - Library
    • None
    • Patch Available

    Description

      Currently in transport/TBufferTransports.h three classes have code of the form

      using TBufferBase::readAll;

      This code is attempting to disambiguate between the readAll function provided by TBufferBase and TVirtualTransport < T, TBufferBase >. This compile and works under GCC. However, this does not conform to the C++ standard. Other compilers(such as Comeau) will report compilation errors because of this code. Here is a related bug filed with gcc: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32039

      I am attaching a patch that explicitly declares readAll and implements it by calling TBufferBase::readAll.

      Attachments

        Activity

          People

            fanatoly Anatoly Fayngelerin
            fanatoly Anatoly Fayngelerin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: