-
Notifications
You must be signed in to change notification settings - Fork 2
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
Sweep: Add CLinkAddress
concept
#113
Comments
Here's the PR! #116.💎 Sweep Pro: I used GPT-4 to create this ticket. You have unlimited GPT-4 tickets.
Actions (click)
Step 1: 🔎 SearchingI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.Interfaces/cpp/Platform.Interfaces/CSet.h Lines 1 to 52 in 8259973
Interfaces/cpp/Platform.Interfaces/CDictionary.h Lines 1 to 77 in 8259973
Interfaces/cpp/Platform.Interfaces/IFactory.h Lines 1 to 12 in 8259973
Interfaces/cpp/Platform.Interfaces/ICriterionMatcher.h Lines 1 to 12 in 8259973
Step 2: ⌨️ Coding
• Include the `` and `` libraries at the beginning of the file. • Define the `Platform::Interfaces` namespace. • Inside the namespace, define the `CLinkAddress` concept that takes a single template argument `T`. • The concept should check if `T` is both integral and unsigned using `std::is_integral` and `std::is_unsigned` respectively. Step 3: 🔁 Code ReviewI have finished reviewing the code for completeness. I did not find errors for . 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. |
Sweep: you should write C++ concept, not struct! #pragma once
#include <concepts>
namespace Platform::Interfaces {
template <typename TSelf, typename TValue, typename... TArgument>
concept CSetter = sizeof...(TArgument) <= 1 && requires(TSelf self, TArgument... argument, TValue value) {
{ self.Set(argument..., value) } -> std::same_as<void>;
};
} |
Sweep: Add
CLinkAddress
concept to cpp/Platform.Interfaces/. CLinkAddress must check that argument is integral and unsignedChecklist
cpp/Platform.Interfaces/CLinkAddress.h
✅ Commit0e26908
The text was updated successfully, but these errors were encountered: