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

variable name clash in macro

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 0.9.7
    • 0.10.0
    • None
    • None
    • Linux

    Description

      The LOG4CXX macros use a temporary ostringstream variable named oss which hides other declarations. For example, the following will print blanks.

      ostringstream oss(“some stuff”);
      LOG4CXX_INFO(logger, oss);

      Possible fix is to use namespace with the temp variable.

      It's a trivial bug, but a pain to track down.

      Attachments

        Activity

          People

            mcatan Michael Catanzariti
            jhoffman164 Jeff Hoffman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: