strong_type icon indicating copy to clipboard operation
strong_type copied to clipboard

An additive strong typedef library for C++14/17/20

Results 8 strong_type issues
Sort by recently updated
recently updated
newest added

In the README, it's specified: > For modifier strong::arithmetic, the type trait std::is_arithmetic is true. According to the standard, this is undefined behaviour: > - None of the templates defined...

fixed on main

I am evaluating which strong type library we could use in your environment. I really like the simplistic of your implementation. But one thing botters me. Maybe you can help...

181c9f4ff120b2e0e3b7b1e793e5833b9b931c3c causes this compile error with both gcc and clang: ``` /usr/include/c++/12/type_traits: In substitution of ‘template using enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = fmt::v8::formatter]’: /path/to/strong_type/include/strong_type/strong_type.hpp:1707:8:...

fixed on main

If multiple modifiers are used, the size of the strong type seems to be doubled. Tested with Microsoft Visual Studio Professional 2019 Version 16.11.33 C++ x64 compiler Standard: latest working...

This is a place holder for creating a module from the strong_type source. Some initial thoughts This should probably be done following the same model as the MSVC standard library....

These changes optionally all the library to be built and consumed using `import std;` rather than classic old style `#include `. This currently works for Visual Studio and Clang using...

Add a macro STRONG_TYPE_MODULE_EXPORT. This at some point will expand to `export` in a module build and empty in a non module build. Only entities in the strong_type namespace were...