Skip to content
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

Add CLinkAddress concept #115

Closed
wants to merge 1 commit into from

Conversation

linksplatform-sweepai[bot]
Copy link
Contributor

Description

This PR adds the CLinkAddress concept to the cpp/Platform.Interfaces/ directory. The CLinkAddress concept validates that an argument is both integral and unsigned. It is implemented as a template that can be used with any type.

Summary of Changes

  • Created a new header file cpp/Platform.Interfaces/CLinkAddress.h for the CLinkAddress concept.
  • Included the <type_traits> library in the CLinkAddress.h file.
  • Defined the CLinkAddress template with a single type parameter.
  • Added a static constexpr boolean variable value inside the CLinkAddress template, initialized with the result of the logical AND operation between std::is_integral and std::is_unsigned applied to the type parameter.

Fixes #113.


🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

  • Leave a comment below to get Sweep to edit the entire PR
  • Leave a comment in the code will only modify the file
  • Edit the original issue to get Sweep to recreate the PR from scratch

@linksplatform-sweepai linksplatform-sweepai bot added the sweep Sweep your software chores label Sep 20, 2023
@linksplatform-sweepai linksplatform-sweepai bot deleted the sweep/add-clinkaddress-concept_1 branch September 20, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Sweep your software chores
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: Add CLinkAddress concept
0 participants