Closed FreePhoenix888 closed 1 year ago
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
cpp/Platform.Interfaces/CLinkAddress.h
✅ Commit 0e26908
• 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.
I have finished reviewing the code for completeness. I did not find errors for sweep/add-clinkaddress-concept
.
.
🎉 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. Join Our Discord
Sweep: you should write C++ concept, not struct! Here is an example of C++ concept:
#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
- [X] `cpp/Platform.Interfaces/CLinkAddress.h` ✅ Commit [`0e26908`](https://github.com/linksplatform/Interfaces/commit/0e26908532dcdd83daf15f39fe71aefff811625e)