From 21c168156c339dfc92d08ca71f825abd7853d8d9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 13 May 2020 18:15:12 +0200 Subject: [PATCH] Restrict client to C++11. --- client/TracyProfiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 47187be8..c6cd88e0 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1718,7 +1718,7 @@ void Profiler::ClearQueues( moodycamel::ConsumerToken& token ) { for(;;) { - const auto sz = GetQueue().try_dequeue_bulk_single( token, [](auto){}, []( QueueItem* item, size_t sz ) { assert( sz > 0 ); while( sz-- > 0 ) FreeAssociatedMemory( *item++ ); } ); + const auto sz = GetQueue().try_dequeue_bulk_single( token, [](const uint64_t&){}, []( QueueItem* item, size_t sz ) { assert( sz > 0 ); while( sz-- > 0 ) FreeAssociatedMemory( *item++ ); } ); if( sz == 0 ) break; } @@ -2578,7 +2578,7 @@ void Profiler::CalibrateDelay() int left = Events; while( left != 0 ) { - const auto sz = GetQueue().try_dequeue_bulk_single( token, [](auto){}, [](auto, auto){} ); + const auto sz = GetQueue().try_dequeue_bulk_single( token, [](const uint64_t&){}, [](QueueItem* item, size_t sz){} ); assert( sz > 0 ); left -= (int)sz; }