Skip to content

Commit

Permalink
devel/py-p4python: Fix build with c++17
Browse files Browse the repository at this point in the history
PR:		243149
Approved by:	antonfb@hesiod.org (maintainer)
  • Loading branch information
leres committed Jul 3, 2023
1 parent 369d193 commit e201450
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions devel/py-p4python/files/patch-P4API.cpp
@@ -0,0 +1,20 @@
--- P4API.cpp.orig 2020-07-15 12:24:50 UTC
+++ P4API.cpp
@@ -337,7 +337,7 @@ static PyObject * P4API_dvcs_init(P4Adapter * self, Py
return NULL;


- auto_ptr<ServerHelperApi> personalServer( create_server(user, client, directory, &ui) );
+ unique_ptr<ServerHelperApi> personalServer( create_server(user, client, directory, &ui) );

if( personalServer.get() == NULL)
return NULL;
@@ -399,7 +399,7 @@ static PyObject * P4API_dvcs_clone(P4Adapter * self, P
&progress))
return NULL;

- auto_ptr<ServerHelperApi> personalServer( create_server(user, client, directory, &ui) );
+ unique_ptr<ServerHelperApi> personalServer( create_server(user, client, directory, &ui) );

if( personalServer.get() == NULL)
return NULL;

0 comments on commit e201450

Please sign in to comment.