Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-336

Test compilation fails: Overloading ambiguity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.10.0
    • Tests
    • None
    • SunOS 5.10 i386, sun studio 11, Sun C++ 5.8 Patch 121018-11 2007/05/02, compiled and linked with libCstd

    Description

      Compilation fails in streamtestcase.cpp:
      "streamtestcase.cpp", line 227: Error: Overloading ambiguity between "std::operator<<(std::ostream &, const char*)" and "log4cxx::logstream::operator<<<char[15]>(const char(&)[15])".
      "streamtestcase.cpp", line 227: Error: The operation "std::ostream<<log4cxx::spi::LocationInfo" is illegal.
      "streamtestcase.cpp", line 233: Error: Overloading ambiguity between "std::operator<<(std::ostream &, const char*)" and "log4cxx::logstream::operator<<<char[15]>(const char(&)[15])".
      "streamtestcase.cpp", line 233: Error: The operation "std::ostream<<log4cxx::spi::LocationInfo" is illegal.

      Please see attached tentative patch.

      Attachments

        Activity

          People

            carnold@apache.org Curt Arnold
            ccosmin Cosmin Cremarenco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: