Commit graph

7 commits

Author SHA1 Message Date
c92f132007 Add endianness conversion template functions. 2017-06-21 20:53:27 +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
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
fcb027409d Add more tests and static asserts and fix the build. 2017-04-12 22:20:33 +01:00
b782ebd53c Add unit test for lexical_cast (broken) 2017-04-12 13:54:55 +01:00