Closed timotheecour closed 3 years ago
essentially, the same as DtoaMinBufferLength from https://github.com/abolz/Drachennest/blob/master/src/dragonbox.h (although the value given there seems a bit large but i haven't looked into it)
DtoaMinBufferLength
this would be much more reliable and usable than relying on what the README says:
char buffer[31]; // Should be long enough
that way, users can write:
char buffer[dragonboxBufferLen];
and it'll guarantee no buffer overflow, etc
Fair enough.
Added an inline constexpr variable template max_output_string_length and updated README.me accordingly.
inline constexpr
max_output_string_length
essentially, the same as
DtoaMinBufferLength
from https://github.com/abolz/Drachennest/blob/master/src/dragonbox.h (although the value given there seems a bit large but i haven't looked into it)this would be much more reliable and usable than relying on what the README says:
that way, users can write:
and it'll guarantee no buffer overflow, etc