You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/05/09 18:57:00 UTC

[jira] [Commented] (AVRO-1542) std::auto_ptr

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

ASF GitHub Bot commented on AVRO-1542:
--------------------------------------

dbenson2000 commented on issue #203: AVRO-1542: Replace deprecated std::auto_ptr
URL: https://github.com/apache/avro/pull/203#issuecomment-387840665
 
 
   @ecatmur which version of Boost did you build with?
   
   I'm attempting to use Boost 1.66 from vcpkg. I can build avro cpp library ok, but when building a project which utilizes Avro in VS2017, I get errors from boost about using auto_ptr
   
   1>...\include\boost\ptr_container\detail\reversible_ptr_container.hpp(350): error C2061: syntax error: identifier 'auto_ptr'
   
   My code pulls in avro/DataFile.hh, which references ultimately includes #include <boost/ptr_container/ptr_vector.hpp>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> std::auto_ptr
> -------------
>
>                 Key: AVRO-1542
>                 URL: https://issues.apache.org/jira/browse/AVRO-1542
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>    Affects Versions: 1.7.6
>            Reporter: Sean Middleditch
>            Priority: Trivial
>
> std::auto_ptr is deprecated, meaning that it may be removed from a future version of the C++ standard (though vendors would not likely remove it... probably).
> Avro should at its next API-breaking opportunity replace its use of auto_ptr with std::unique_ptr or shared_ptr or a custom smart pointer.



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