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

[C++ binding] Complex types: List containing array of std::nullptr_t fails compilation

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • proton-c-0.23.0
    • cpp-binding
    • None

    Description

      If an array of AMQP nulls is contained in a list, the compiler fails with:

      include/proton/./codec/vector.hpp:39:31: error: incomplete type ‘proton::internal::type_id_of<std::nullptr_t>’ used in nested name specifier
      

      Code snippet that produces this error:

      std::vector<std::nullptr_t> _arr_27 = {nullptr, nullptr, };
      std::vector<int8_t> _arr_28 = {int8_t(1), int8_t(2), };
      std::vector<proton::value> _lst_7 = {_arr_27, _arr_28, };
      

      which fails on the third line.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            astitcher Andrew Stitcher
            kpvdr Kim van der Riet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment