type_safe
type_safe copied to clipboard
Zero overhead utilities for preventing bugs at compile time
Cool library! The `type_safe::strong_typedef_op` could use the bitwise operations like &, |, ~, etc. For the integer op type these should probably be default.
I'm new to this lib, but I like the idea very much. What about numeric_limits? I know that std::chrono:duration defines them [on the type itself](https://en.cppreference.com/w/cpp/chrono/duration/max), but I would also be...
Draft to fix https://github.com/foonathan/type_safe/issues/100
As many programmers I sometimes need to do some work for all flags set in an flag_set. Can we add an type_safe way to iterate over all 'set' flags in...
It seems clang [introduced](https://github.com/llvm/llvm-project/pull/80801) a new error: missing-template-arg-list-after-template-kw resulting in [build failures](https://godbolt.org/z/d5rPedaY8): ```c++ In file included from :1: In file included from /opt/compiler-explorer/libs/type_safe/trunk/include/type_safe/types.hpp:21: /opt/compiler-explorer/libs/type_safe/trunk/include/type_safe/integer.hpp:193:41: error: a template argument list is...
I'm really struggling to use type_safe::strong_typedef properly. I wonder if anyone has any documentation containing examples of real-life usage? I read the blog posts linked in the README but that...
C-tor `strong_typedef::strong_typedef(const T& value)` should also be merked with noexcept operator like `strong_typedef::strong_typedef(T&& value)`.