From 4b3fa4742b0bb20a54cb77158fd5cc5d27431531 Mon Sep 17 00:00:00 2001
From: Phil Nash <github@philnash.me>
Date: Thu, 2 Oct 2014 18:47:07 +0100
Subject: [PATCH] Use reset instead of assignment when updating
 auto_ptr/unique_ptr

---
 include/external/clara.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/external/clara.h b/include/external/clara.h
index dba26a95..ce2ef2ec 100644
--- a/include/external/clara.h
+++ b/include/external/clara.h
@@ -620,7 +620,7 @@ namespace Clara {
             m_throwOnUnrecognisedTokens( other.m_throwOnUnrecognisedTokens )
         {
             if( other.m_floatingArg.get() )
-                m_floatingArg = ArgAutoPtr( new Arg( *other.m_floatingArg ) );
+                m_floatingArg.reset( new Arg( *other.m_floatingArg ) );
         }
 
         CommandLine& setThrowOnUnrecognisedTokens( bool shouldThrow = true ) {
@@ -649,7 +649,7 @@ namespace Clara {
         ArgBuilder operator[]( UnpositionalTag ) {
             if( m_floatingArg.get() )
                 throw std::logic_error( "Only one unpositional argument can be added" );
-            m_floatingArg = ArgAutoPtr( new Arg() );
+            m_floatingArg.reset( new Arg() );
             ArgBuilder builder( m_floatingArg.get() );
             return builder;
         }