[
https://issues.apache.org/jira/browse/AMQCPP-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hermann Walth updated AMQCPP-628:
---------------------------------
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.
was:
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.
> 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
>
> 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)