You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2018/03/19 13:13:00 UTC

[jira] [Moved] (AMQCPP-628) std::auto_ptr has been removed in C++17

     [ https://issues.apache.org/jira/browse/AMQCPP-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish moved AMQ-6932 to AMQCPP-628:
------------------------------------------

    Component/s:     (was: CMS (C++ client))
                 CMS Impl
     Issue Type: Improvement  (was: Bug)
            Key: AMQCPP-628  (was: AMQ-6932)
        Project: ActiveMQ C++ Client  (was: ActiveMQ)

> 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)