Skip to content

Commit 2b4b5a7

Browse files
authored
[OMON-722] Do not use C++20 auto function parameter (#332)
1 parent 2f917a2 commit 2b4b5a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endif()
3131

3232
# Define project
3333
project(Monitoring
34-
VERSION 3.17.4
34+
VERSION 3.17.5
3535
DESCRIPTION "O2 Monitoring library"
3636
LANGUAGES CXX
3737
)

examples/16-AliECS.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ using namespace o2::monitoring;
2525
class AliEcsClient {
2626
public:
2727
AliEcsClient(std::shared_ptr<Channel> channel) : mStub(o2control::Control::NewStub(channel)) {}
28-
void sendRunDetails(const auto& influxBackend) {
28+
void sendRunDetails(backends::InfluxDB* const influxBackend) {
2929
o2control::GetEnvironmentsRequest request;
3030
request.set_showall(false);
3131
request.set_showtaskinfos(false);
@@ -80,7 +80,7 @@ int main(int argc, char* argv[]) {
8080
httpTransport->addHeader("Authorization: Token " + vm["influxdb-token"].as<std::string>());
8181
auto influxdbBackend = std::make_unique<backends::InfluxDB>(std::move(httpTransport));
8282
for (;;) {
83-
client.sendRunDetails(influxdbBackend);
83+
client.sendRunDetails(influxdbBackend.get());
8484
std::this_thread::sleep_for(std::chrono::seconds(15));
8585
}
8686
}

0 commit comments

Comments
 (0)