Skip to content

Commit 9cd44ee

Browse files
committed
chore: restore deprecated BigSegmentStatus() accessor as a shim
1 parent 84a60e4 commit 9cd44ee

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

libs/common/include/launchdarkly/data/evaluation_reason.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ class EvaluationReason {
9191
*/
9292
[[nodiscard]] std::optional<BigSegmentsStatus> BigSegmentsStatus() const;
9393

94+
/**
95+
* Deprecated; use BigSegmentsStatus() instead. Always returns std::nullopt.
96+
*/
97+
[[deprecated("use BigSegmentsStatus()")]] [[nodiscard]] std::optional<
98+
std::string>
99+
BigSegmentStatus() const;
100+
94101
/**
95102
* The index of the matched rule (0 for the first), if the kind was
96103
* `"RULE_MATCH"`.

libs/common/src/data/evaluation_reason.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ EvaluationReason::BigSegmentsStatus() const {
3232
return big_segments_status_;
3333
}
3434

35+
std::optional<std::string> EvaluationReason::BigSegmentStatus() const {
36+
return std::nullopt;
37+
}
38+
3539
EvaluationReason::EvaluationReason(
3640
enum Kind kind,
3741
std::optional<enum ErrorKind> error_kind,

0 commit comments

Comments
 (0)