From 329987d9c902b026fe1295d3e4c2dbc9f163b5e5 Mon Sep 17 00:00:00 2001 From: Adam Wegrzynek Date: Fri, 20 Oct 2023 11:09:29 +0200 Subject: [PATCH] [OMON-722] Do not use C++20 auto function parameter --- examples/16-AliECS.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/16-AliECS.cxx b/examples/16-AliECS.cxx index b0de85de..bae4fb04 100644 --- a/examples/16-AliECS.cxx +++ b/examples/16-AliECS.cxx @@ -25,7 +25,7 @@ using namespace o2::monitoring; class AliEcsClient { public: AliEcsClient(std::shared_ptr channel) : mStub(o2control::Control::NewStub(channel)) {} - void sendRunDetails(const auto& influxBackend) { + void sendRunDetails(backends::InfluxDB* const influxBackend) { o2control::GetEnvironmentsRequest request; request.set_showall(false); request.set_showtaskinfos(false); @@ -80,7 +80,7 @@ int main(int argc, char* argv[]) { httpTransport->addHeader("Authorization: Token " + vm["influxdb-token"].as()); auto influxdbBackend = std::make_unique(std::move(httpTransport)); for (;;) { - client.sendRunDetails(influxdbBackend); + client.sendRunDetails(influxdbBackend.get()); std::this_thread::sleep_for(std::chrono::seconds(15)); } }