Add cpp23 support (#1726)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright 2023 Memgraph Ltd.
|
||||
// Copyright 2024 Memgraph Ltd.
|
||||
//
|
||||
// Use of this software is governed by the Business Source License
|
||||
// included in the file licenses/BSL.txt; by using this file, you agree to be bound by the terms of the Business Source
|
||||
@@ -113,7 +113,6 @@ struct ConsumerTest : public ::testing::Test {
|
||||
void SeedTopicWithInt(const std::string &topic_name, int value) {
|
||||
std::array<char, sizeof(int)> int_as_char{};
|
||||
std::memcpy(int_as_char.data(), &value, int_as_char.size());
|
||||
|
||||
cluster.SeedTopic(topic_name, int_as_char);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2022 Memgraph Ltd.
|
||||
// Copyright 2024 Memgraph Ltd.
|
||||
//
|
||||
// Use of this software is governed by the Business Source License
|
||||
// included in the file licenses/BSL.txt; by using this file, you agree to be bound by the terms of the Business Source
|
||||
@@ -78,10 +78,6 @@ void KafkaClusterMock::CreateTopic(const std::string &topic_name) {
|
||||
}
|
||||
}
|
||||
|
||||
void KafkaClusterMock::SeedTopic(const std::string &topic_name, std::string_view message) {
|
||||
SeedTopic(topic_name, std::span{message.data(), message.size()});
|
||||
}
|
||||
|
||||
void KafkaClusterMock::SeedTopic(const std::string &topic_name, std::span<const char> message) {
|
||||
char errstr[256] = {'\0'};
|
||||
std::string bootstraps_servers = Bootstraps();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 Memgraph Ltd.
|
||||
// Copyright 2024 Memgraph Ltd.
|
||||
//
|
||||
// Use of this software is governed by the Business Source License
|
||||
// included in the file licenses/BSL.txt; by using this file, you agree to be bound by the terms of the Business Source
|
||||
@@ -41,7 +41,6 @@ class KafkaClusterMock {
|
||||
std::string Bootstraps() const;
|
||||
void CreateTopic(const std::string &topic_name);
|
||||
void SeedTopic(const std::string &topic_name, std::span<const char> message);
|
||||
void SeedTopic(const std::string &topic_name, std::string_view message);
|
||||
|
||||
private:
|
||||
RdKafkaUniquePtr rk_{nullptr};
|
||||
|
||||
Reference in New Issue
Block a user