You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (JIRA)" <ji...@apache.org> on 2016/03/16 15:42:33 UTC

[jira] [Commented] (QPID-7145) auto_ptr is deprecated from C++11 and onwards and its use causes a warning with GCC 6

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

Andrew Stitcher commented on QPID-7145:
---------------------------------------

To get the compile working I will add -Wno-deprecated-declarations to the warning flags.

However it would be much better to change all the uses of auto_ptr, but this is a medium sized job, as there are many uses in the qpid codebase.

> auto_ptr is deprecated from C++11 and onwards and its use causes a warning with GCC 6
> -------------------------------------------------------------------------------------
>
>                 Key: QPID-7145
>                 URL: https://issues.apache.org/jira/browse/QPID-7145
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker, C++ Client, C++ Clustering
>         Environment: GCC 6 and on.
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>
> As we compile qpid with warnings turned to errors this causes the build to fail by default when compiling with GCC6.
> The simplest "fix" is just to turn of deprecation warnings.
> A better fix would be to stop using auto_ptr. An good alternative in the context of qpid would be boost::scoped_ptr.
> If we change the base C++ version for qpid we could use std::unique_ptr instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org