aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-06-28added f_to_stringClyne Sullivan
2020-06-28added f_to_stringClyne Sullivan
2020-06-27Changed other base instance to signedclyne
2020-06-27Merge pull request #1 from EnilPajic/patch-1-negative-minimum-valueclyne
Fixed potential bug with -MINIMUM_VALUE
2020-06-27Change base from unsigned to signedclyne
2020-06-27Merge branch 'master' into patch-1-negative-minimum-valueclyne
2020-06-27add const and references to container operationsClyne Sullivan
2020-06-27Use end() in constructorClyne Sullivan
2020-06-27Merge pull request #4 from Neargye/masterclyne
container-like
2020-06-27container-likeneargye
2020-06-26Update "how it works" sectionclyne
2020-06-26Add note on custom character typesclyne
2020-06-26Add support for range-based for loopsclyne
2020-06-26Add support for different character widthsclyne
2020-06-26Forgot to support to_string<0>clyne
2020-06-26Remove resolved issue with GCC/C++17clyne
2020-06-26Initialize buf for C++17 GCC; make to_string constexprclyne
https://www.reddit.com/r/cpp/comments/hgcaih/compiletime_integertostring_conversion_c17/fw3d2fm/
2020-06-26Fixed potential bug with -MINIMUM_VALUEEnilPajic
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-26Added explanation of codeclyne
2020-06-26Described new changesclyne
2020-06-26Remove redundant length calculation; expand base support to 36clyne
2020-06-26Added compiler explorer linkclyne
2020-06-26Update README.mdclyne
2020-06-26Create to_string.hppclyne
2020-06-26Initial commitclyne