Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-429

pn_bytes(size_t size, char *start) needs a const on the 'start' argument

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • proton-0.5
    • proton-0.8
    • proton-c
    • None

    Description

      The constructor for a pn_bytes takes a non-const pointer to a character as an argument. This makes pn_bytes unusable for constant literals without casting away the constness.

      Attachments

        Activity

          People

            astitcher Andrew Stitcher
            tross Ted Ross
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: