Age | Commit message (Collapse) | Author | |
---|---|---|---|
2025-01-02 | remove unnecessary const #7HEADmaster | Clyne Sullivan | |
copied from https://github.com/tcsullivan/constexpr-to-string/pull/7, forgot that github is a mirror now | |||
2023-02-08 | support c++14 | Clyne Sullivan | |
2020-06-29 | make digits inline; simplify digit_count | clyne | |
2020-06-29 | Adding constexpr_to_string namespace | SecMeant | |
Namespace is used to prevent pollution of global namespace by digits and digits_count symbols. | |||
2020-06-29 | Merge branch 'master' into digits_array | clyne | |
2020-06-27 | Changed other base instance to signed | clyne | |
2020-06-27 | Change base from unsigned to signed | clyne | |
2020-06-27 | Merge branch 'master' into patch-1-negative-minimum-value | clyne | |
2020-06-27 | add const and references to container operations | Clyne Sullivan | |
2020-06-27 | Use end() in constructor | Clyne Sullivan | |
2020-06-27 | container-like | neargye | |
2020-06-27 | Storing digits in variable, thus removing magic constant from template param ↵ | SecMeant | |
check | |||
2020-06-26 | Add support for range-based for loops | clyne | |
2020-06-26 | Add support for different character widths | clyne | |
2020-06-26 | Forgot to support to_string<0> | clyne | |
2020-06-26 | Initialize buf for C++17 GCC; make to_string constexpr | clyne | |
https://www.reddit.com/r/cpp/comments/hgcaih/compiletime_integertostring_conversion_c17/fw3d2fm/ | |||
2020-06-26 | Fixed potential bug with -MINIMUM_VALUE | EnilPajic | |
Original code had something like `N < 0 ? -N : N` which could fail if `N` has minimum value of appropriate type. For example, in original code this could fail: ```cpp const long long int LL_MIN = std::numeric_limits<long long int>::min(); //probably: -9223372036854775808 static const char *number = to_string<LL_MIN, 10>; ``` Also note that this code relies on "modulo on negative first operands" which was implementation defined in C++03 and before, but with C++11 and later it is defined by standard (see `ISO14882:2011(e)`), and this code anyway targets C++17 so we're safe here. | |||
2020-06-26 | Remove redundant length calculation; expand base support to 36 | clyne | |
2020-06-26 | Create to_string.hpp | clyne | |