NamedType
NamedType copied to clipboard
Implementation of strong types in C++
Thanks for the excellent library! I've added NamedType to our CI and enabled the tests, but the tests fail with Visual Studio 2019 16.7.7 (current latest). I've tested with both...
Hello, First, thank you for this clever coding trick! Now I have a little improvement to suggest: * for the BitWiseLeftShiftable/BitWiseRightShiftable skills, it would be better to use an 'int'...
Complementary to the printable skill.
Since 5f172345bd62b13bd6ff52c055e6e6d66d0aab23 from @knatten , there is a behavior change as well, the underlying type initial value is not the same as before. For example, a POD like int or...
This addresses issue #77
You might want to note somewhere in the readme that the library is packaged for Arch Linux in the [AUR](https://aur.archlinux.org/packages/namedtype-git) (by me). Another thing: I've packaged the git version (master),...
It often makes sense for type to be equality comparable but not comparable. This skill has been for a quite some time in a fork of NamedType library we use...
Arithmetic `NamedType` does not pass `std::is_arithmetic` assertion. i.e. ``` using MyInt = fluent::NamedType; static_assert(std::is_arithmetic() == true); // does not compile ``` This could be potentially fixed using the same pattern...
Here is a preliminary attempt to fix #73
I have a use case where a microcontroller library has non-copyable type for timers. Unfortunately, the library has not created a move constructor for this type either. Several higher level...