https://github.com/Extevious/strict-cpp
Reduce ambiguity between methods and operators by using types provided by strict-cpp, a C++20 platform-agnostic project.
It's still a WIP, but most of the core features are implemented. Feedback welcome!
6 messages · Page 1 of 1 (latest)
https://github.com/Extevious/strict-cpp
Reduce ambiguity between methods and operators by using types provided by strict-cpp, a C++20 platform-agnostic project.
It's still a WIP, but most of the core features are implemented. Feedback welcome!
why are std::size_t and std::int32_t ambiguous but strict::size_t and strict::int32_t not?
Yeah, not the best example 😛 I updated it. Also, in regards to ambiguity, the compiler knows what to use, but it could be ambiguous to the user, or accidently use the wrong method/operator by mistake. Having a little extra explicitness can help avoid these little issues that could potentially be a major headache if enough of them accumulate.
i see
totally unnecessary but you could do this instead of rewriting the project name 3 times lol
https://godbolt.org/z/acThK3Ecn
Ah cool, didn't know you could stringify __VA_ARGS__, thanks!