8 Commits (5baf5d3daeece33e0767a1c8fbd1b85daa84f45e)
 

Author SHA1 Message Date
EnilPajic 5baf5d3dae
Fixed potential bug with -MINIMUM_VALUE
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.
4 years ago
Clyne 2be778931d
Added explanation of code 4 years ago
Clyne 5510e86a96
Described new changes 4 years ago
Clyne 796eb3e7ee
Remove redundant length calculation; expand base support to 36 4 years ago
Clyne aa85b760a8
Added compiler explorer link 4 years ago
Clyne 0f38f29202
Update README.md 4 years ago
Clyne a436ba6867
Create to_string.hpp 4 years ago
Clyne 2cd6a7d877
Initial commit 4 years ago