aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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