From: Scott Cantor Date: Mon, 16 Apr 2012 21:28:19 +0000 (+0000) Subject: Switch from auto_ptr to scoped_ptr. X-Git-Tag: 2.5.0~19 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=1e06801f9c2abf9b5f199887601e3254fd87fa3a Switch from auto_ptr to scoped_ptr. --- diff --git a/saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp b/saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp index dafe381..313df44 100644 --- a/saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp +++ b/saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp @@ -33,6 +33,7 @@ #include "saml2/metadata/Metadata.h" #include "saml2/metadata/MetadataProvider.h" +#include #include #include #include @@ -45,6 +46,7 @@ using namespace opensaml::saml2; using namespace opensaml; using namespace xmltooling::logging; using namespace xmltooling; +using namespace boost; using namespace std; namespace opensaml { @@ -95,7 +97,7 @@ XMLObject* SAML2ArtifactDecoder::decode( throw BindingException("Artifact binding requires ArtifactResolver and MetadataProvider implementations be supplied."); // Import the artifact. - auto_ptr artifact; + scoped_ptr artifact; try { log.debug("processing encoded artifact (%s)", SAMLart);