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

Brian Geffon commented on TS-4151:
----------------------------------

This is what he previously came up with:

{code}
#include "ink_autoconf.h"
#if HAVE_STD_SHARED_PTR
#include <memory>
#else
#include <tr1/memory>
#endif

namespace atscppapi
{
/**
 * Force the use of std::tr1::shared_ptr
 * \todo Consider adding a simple macro to check if c++0x/11 is enabled
 * and if so change it to std::shared_ptr and #include <memory>s
 */
#if HAVE_STD_SHARED_PTR
using std::shared_ptr;
using std::unique_ptr;
#else
using std::tr1::shared_ptr;
using std::tr1::unique_ptr;
#endif
{code}

> std::tr1::unique_ptr has not been declared
> ------------------------------------------
>
>                 Key: TS-4151
>                 URL: https://issues.apache.org/jira/browse/TS-4151
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: CPP API
>    Affects Versions: 6.1.0
>            Reporter: Bryan Call
>            Assignee: Brian Geffon
>             Fix For: 6.1.0
>
>
> I am getting this compile error on RHEL7 with the 6.1.0 release:
> {code}
> ../../../lib/atscppapi/src/include/atscppapi/shared_ptr.h:47: error: 
> ‘std::tr1::unique_ptr’ has not been declared
> {code}



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

Reply via email to