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

Bryan Call commented on TS-4151:
--------------------------------

Changing the code to this makes it work, but it might not work with all OSes.  
We should do a specific autoconf test for unique_ptr:

{code}
diff --git a/lib/atscppapi/src/include/atscppapi/shared_ptr.h 
b/lib/atscppapi/src/include/atscppapi/shared_ptr.h
index 94b13e1..90c14a8 100644
--- a/lib/atscppapi/src/include/atscppapi/shared_ptr.h
+++ b/lib/atscppapi/src/include/atscppapi/shared_ptr.h
@@ -45,7 +45,7 @@ using std::shared_ptr;
 using std::unique_ptr;
 #else
 using std::tr1::shared_ptr;
-using std::tr1::unique_ptr;
+using std::unique_ptr;
 #endif

 } /* atscppapi */
{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