[ 
https://issues.apache.org/jira/browse/AMQCPP-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16510978#comment-16510978
 ] 

Hermann Walth commented on AMQCPP-628:
--------------------------------------

I've just added a patch for this issue myself. For the most part, you can just 
simply replace all mentions of std::auto_ptr with std::unique_ptr. The 
remaining compiler errors and warnings are easily fixed by hand.

Can you please incorporate this patch into the upcoming versions of 
ActiveMQ-C++, or use it as a basis for your own fix for this issue?

> std::auto_ptr has been removed in C++17
> ---------------------------------------
>
>                 Key: AMQCPP-628
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-628
>             Project: ActiveMQ C++ Client
>          Issue Type: Improvement
>          Components: CMS Impl
>            Reporter: Hermann Walth
>            Priority: Major
>         Attachments: AMQCPP-628.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to