[Convert] convert<float> doesn't respect input size

15 May
2017
15 May
'17
8:48 a.m.
Hi, const char* a = "42"; boost::string_ref b(a, 1); float c = boost::convert<float>(b, boost::cnv::strtol(), -1); // returns 42 assert(c == 4); https://github.com/boostorg/convert/issues/29 -- Olaf
2842
Age (days ago)
2842
Last active (days ago)
0 comments
1 participants
participants (1)
-
Olaf van der Spek