Switch from auto_ptr to scoped_ptr.
authorScott Cantor <cantor.2@osu.edu>
Mon, 16 Apr 2012 21:28:19 +0000 (21:28 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 16 Apr 2012 21:28:19 +0000 (21:28 +0000)
saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp

index dafe381..313df44 100644 (file)
@@ -33,6 +33,7 @@
 #include "saml2/metadata/Metadata.h"
 #include "saml2/metadata/MetadataProvider.h"
 
+#include <boost/scoped_ptr.hpp>
 #include <xmltooling/logging.h>
 #include <xmltooling/XMLToolingConfig.h>
 #include <xmltooling/io/HTTPRequest.h>
@@ -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<SAMLArtifact> artifact;
+    scoped_ptr<SAMLArtifact> artifact;
     try {
         log.debug("processing encoded artifact (%s)", SAMLart);