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

Test compilation fails: Overloading ambiguity

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: Tests
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              carnold@apache.org Curt Arnold
              Reporter:
              ccosmin Cosmin Cremarenco

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment