Commit graph

62 commits

Author SHA1 Message Date
1a33afdc27 Detect char type for int to string conversions.
Right now only char is supported. You have to provide your
own specialization of index_to_char for your character type
if you want the code to compile.
2017-05-02 20:22:48 +01:00
b854a54293 Move the new function to its own header. 2017-05-02 20:01:41 +01:00
91dca8810a Add a function that returns a MaxSizedArray.
This way you can use it to construct ie: a boost::string_ref or
just take the buffer and use it as a c-style string.
2017-05-02 19:14:53 +01:00
1696acae44 Rework customization points a bit 2017-05-02 19:13:39 +01:00
9f196beeea Drop unused template argument. 2017-05-02 18:38:09 +01:00
f6bddac63d Use sprout's limits instead of std's and remove unneeded make_unsigned.
I'm not sure what it was supposed to be, maybe a customization point
or something, but after the fix for counting the digits correctly I
removed the only usage of make_unsigned, so I could also get rid of
its implementation. Sweet~
2017-04-25 09:33:27 +01:00
c3dee50e5b Don't use pow and log10 directly because it causes an overflow. 2017-04-13 19:21:25 +01:00
c20ed80ef4 Yet another possible fix for the rpi build 2017-04-13 08:58:24 +01:00
fcb027409d Add more tests and static asserts and fix the build. 2017-04-12 22:20:33 +01:00
0da25f9094 Buildfix 2016-07-14 15:51:37 +01:00
8c917cf38b Drop the only dependency I had on boost. 2016-07-14 15:10:58 +01:00
ccb2fc7ae5 First import
Files taken directly from dindexer
2016-07-14 14:59:15 +01:00