summarylogtreecommitdiffstats
path: root/autoptr2uniqueptr.patch
blob: 1787e5b271ef0e0e73a6c923b22f1cbe022a81f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ruN old/libs/boost-logging/boost/logging/detail/tss/tss_impl_pthread.hpp new/libs/boost-logging/boost/logging/detail/tss/tss_impl_pthread.hpp
--- old/libs/boost-logging/boost/logging/detail/tss/tss_impl_pthread.hpp	2016-04-10 15:15:39.000000000 +0430
+++ new/libs/boost-logging/boost/logging/detail/tss/tss_impl_pthread.hpp	2016-06-18 11:18:42.736469469 +0430
@@ -39,7 +39,7 @@
     slots = static_cast<tss_slots*>( pthread_getspecific(tss_data_native_key()));
     if (slots == 0)
     {
-        std::auto_ptr<tss_slots> temp( new_object_ensure_delete<tss_slots>() );
+        std::unique_ptr<tss_slots> temp( new_object_ensure_delete<tss_slots>() );
         // pre-allocate a few elems, so that we'll be fast
         temp->resize(BOOST_LOG_TSS_SLOTS_SIZE);