Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-628

std::auto_ptr has been removed in C++17

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • CMS Impl
    • None

    Description

      Compiling ActiveMQ-cpp when the compiler flag to enable the C++ 17 standard is set will result in compiler errors because ActiveMQ-cpp uses auto_ptr, which has been removed in C++ 17.

      More importantly, compiling any project that uses ActiveMQ-cpp with a C++17-compliant compiler will fail because std::auto_ptr is used in the ActiveMQ headers.

      Please replace all occurrences of std::auto_ptr with std::unique_ptr.

      Attachments

        1. AMQCPP-628.patch
          354 kB
          Hermann Walth

        Activity

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

          People

            Unassigned Unassigned
            hwalth2 Hermann Walth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment