-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Overload client functions #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
NeaguGeorgiana23
wants to merge
38
commits into
main
Choose a base branch
from
overload_client_functions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+250
−27
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
42a776d
base data structures fot hook implementation.
NeaguGeorgiana23 e968609
fix linter
NeaguGeorgiana23 334ec2a
fix linter
NeaguGeorgiana23 f110e5c
Merge branch 'main' into define-hook-data-structures
NeaguGeorgiana23 5cc878b
Update BUILD file.
NeaguGeorgiana23 bd66430
Correct include guards.
NeaguGeorgiana23 5332610
feat: Add HookData class.
NeaguGeorgiana23 c8fc92d
fix linter
NeaguGeorgiana23 3f5f4de
fix linter
NeaguGeorgiana23 b0f3a15
fix linter
NeaguGeorgiana23 e9e8852
fix linter
NeaguGeorgiana23 e333df0
add HookContext structure.
NeaguGeorgiana23 c59de28
fix linter
NeaguGeorgiana23 45ca64a
fix linter
NeaguGeorgiana23 3b93d77
add Hooks class.
NeaguGeorgiana23 a4aa1c2
fix linter.
NeaguGeorgiana23 d7cd54a
fix linter.
NeaguGeorgiana23 d6ef2c6
fix linter.
NeaguGeorgiana23 a2f7fee
fix linter.
NeaguGeorgiana23 a91afca
appli agent suggestions.
NeaguGeorgiana23 c0482f7
Merge branch 'main' into hooks
NeaguGeorgiana23 a0ca155
Merge branch 'main' into hooks
NeaguGeorgiana23 06bd51c
Add EvaluationOpton struct.
NeaguGeorgiana23 b362223
fix linter.
NeaguGeorgiana23 6942c4e
update Provider class to allow getting hooks.
NeaguGeorgiana23 49bdc17
update all classes that inharit from FeatureProvider.
NeaguGeorgiana23 dab62a0
update BUILD files and imports.
NeaguGeorgiana23 ea6a463
update GlobalAPI with hook methods.
NeaguGeorgiana23 665914a
fix linter.
NeaguGeorgiana23 0bd0f58
fix linter.
NeaguGeorgiana23 153fc57
Merge branch 'main' of https://github.com/open-feature/cpp-sdk into u…
NeaguGeorgiana23 543edd0
Fix linter.
NeaguGeorgiana23 3e28c56
Update Clint API to support Hooks
NeaguGeorgiana23 0b6c84b
Overload functions to support EvaluationOptions.
NeaguGeorgiana23 bdbc5ca
fix linter.
NeaguGeorgiana23 408322e
fix tests
NeaguGeorgiana23 3f71061
Merge branch 'main' of https://github.com/open-feature/cpp-sdk into o…
NeaguGeorgiana23 3f148a2
Merge branch 'main' into overload_client_functions
NeaguGeorgiana23 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: open-feature/cpp-sdk
Length of output: 1413
🏁 Script executed:
Repository: open-feature/cpp-sdk
Length of output: 8684
🏁 Script executed:
Repository: open-feature/cpp-sdk
Length of output: 260
🌐 Web query:
C++ standard duplicate identical member function declarations in the same class allowed or ill-formed💡 Result:
In C++, declaring the exact same member function twice within the same class definition is generally ill-formed, as the C++ standard explicitly states that a member shall not be declared twice in the member-specification of a class [1][2]. However, this rule is subject to specific nuances and exceptions: 1. Overloading vs. Redeclaration: If you declare two member functions with the same name, they are not necessarily "duplicates." If their parameter-type-lists or cv-qualifiers differ in ways that allow for function overloading, the compiler treats them as separate overloads rather than a forbidden duplicate declaration [3][4]. The program only becomes ill-formed if the signatures are identical (or equivalent) in a way that does not constitute valid overloading [5][3]. 2. General Rule for Entities: Under the general rules for conflicting declarations in C++, two declarations in the same scope cannot reintroduce the same entity unless they are compatible (e.g., in the case of overloading) [5][6]. If two declarations for the same member function appear in the same class scope and have identical signatures, it is considered a redeclaration of the same entity and is ill-formed [5][3]. 3. Exceptions: The standard provides limited exceptions where a member may be redeclared. For example, nested classes or member class templates can be declared and then later defined [1][4]. Additionally, an enumeration can be introduced with an opaque-enum-declaration and later redeclared with an enum-specifier [2][4]. These exceptions do not apply to standard member functions. In summary, attempting to provide an identical declaration for a member function in the same class will cause a compiler error because it violates the restriction against declaring the same member multiple times [1][2]. If you intended to overload the function, you must ensure the signatures differ sufficiently according to C++ overload resolution rules [3][4].
Citations:
Remove the duplicate hook declarations.
ClientAPIdeclaresAddHooks,AddHook, andGetHookstwice with identical signatures. This makes the class definition ill-formed and blocks compilation. Remove either declaration set.🤖 Prompt for AI Agents