linksplatform / Interfaces

LinksPlatform's Platform.Interfaces Class Library
https://linksplatform.github.io/Interfaces
The Unlicense
3 stars 2 forks source link

Create `CLinkAddress` concept #101

Closed FreePhoenix888 closed 1 year ago

FreePhoenix888 commented 2 years ago

CLinkAddress must check that argument is integral and unsigned

uselessgoddess commented 2 years ago

No no. Create CLinkType concept because LinkType = integral + unsigned

FreePhoenix888 commented 2 years ago

@uselessgoddess , what do you think about std::three_way_comparable? I think it must be constrained with std::three_way_comparable too

uselessgoddess commented 2 years ago

No. They require operator+, operator-, operator*, ....

uselessgoddess commented 2 years ago

Use like this style:

template <typename Self>
concept LinkType = std::is_unsigned_v<Self>;
uselessgoddess commented 2 years ago

And move to Numbers

FreePhoenix888 commented 1 year ago

Closed in https://github.com/linksplatform/Interfaces/issues/113