From 1722dd6695a7ad1b35e7b935a70006599c1d3499 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Fri, 29 May 2015 11:07:23 +0200 Subject: [PATCH] Remove deprecated std::auto_ptr - With gcc 5.1.0 we now get warnings for usage of std::auto_ptr. It is deprecated by the C++0x standard and afterwards so it's prudent to replace them with unique pointers. --- libtestutils/BlockChainLoader.h | 2 +- mix/MixClient.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libtestutils/BlockChainLoader.h b/libtestutils/BlockChainLoader.h index 58b1affaf..b963638d1 100644 --- a/libtestutils/BlockChainLoader.h +++ b/libtestutils/BlockChainLoader.h @@ -44,7 +44,7 @@ public: private: TransientDirectory m_dir; - std::auto_ptr m_bc; + std::unique_ptr m_bc; eth::State m_state; }; diff --git a/mix/MixClient.h b/mix/MixClient.h index 2c6734234..4c5b51a09 100644 --- a/mix/MixClient.h +++ b/mix/MixClient.h @@ -94,7 +94,7 @@ private: eth::State m_state; eth::State m_startState; OverlayDB m_stateDB; - std::auto_ptr m_bc; + std::unique_ptr m_bc; mutable boost::shared_mutex x_state; mutable boost::shared_mutex x_executions; ExecutionResults m_executions;