Skip to content

Commit 30a637d

Browse files
committed
fix build on mac
1 parent 55c4ee5 commit 30a637d

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

libs/client-sdk/include/launchdarkly/client_side/data_source_update_sink.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#pragma once
22

3-
#include <map>
3+
#include <optional>
4+
#include <ostream>
45
#include <string>
6+
#include <unordered_map>
57

68
#include "config/detail/service_endpoints.hpp"
79
#include "context.hpp"

libs/client-sdk/include/launchdarkly/client_side/flag_manager/detail/flag_manager.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
#pragma once
22

33
#include <mutex>
4+
#include <string>
5+
#include <unordered_map>
46

57
#include "launchdarkly/client_side/data_source_update_sink.hpp"
68

79
namespace launchdarkly::client_side::flag_manager::detail {
810

911
class FlagManager {
1012
public:
11-
void init(const std::unordered_map<std::string, ItemDescriptor>& data);
12-
void upsert(const std::string& key, ItemDescriptor item);
13+
void init(std::unordered_map<std::string, ItemDescriptor> const& data);
14+
void upsert(std::string const& key, ItemDescriptor item);
1315

1416
/**
1517
* Attempts to get a flag by key from the current flags.
@@ -18,7 +20,7 @@ class FlagManager {
1820
* @return A shared_ptr to the value if present. A null shared_ptr if the
1921
* item is not present.
2022
*/
21-
std::shared_ptr<ItemDescriptor> get(const std::string& flag_key) const;
23+
std::shared_ptr<ItemDescriptor> get(std::string const& flag_key) const;
2224

2325
/**
2426
* Gets all the current flags.

libs/client-sdk/src/data_sources/streaming_data_handler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "serialization/value_mapping.hpp"
66

77
#include <boost/json.hpp>
8+
#include <unordered_map>
89
#include <utility>
910

1011
#include "tl/expected.hpp"

libs/client-sdk/tests/streaming_data_handler_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "launchdarkly/client_side/data_sources/detail/streaming_data_handler.hpp"
66

77
#include <memory>
8+
#include <unordered_map>
89

910
using namespace launchdarkly;
1011
using namespace launchdarkly::client_side;

0 commit comments

Comments
 (0)