@@ -32,7 +32,7 @@ namespace fp_formatting {
32
32
* assert(buffer[1] == '2');
33
33
* assert(buffer[2] == '3');
34
34
*/
35
- inline auto ConvertToChars (char * begin, char * end, size_t value, int width=1 ) -> int {
35
+ inline int ConvertToChars (char * begin, char * end, size_t value, int width=1 ) {
36
36
assert (width >= 1 );
37
37
assert (end >= begin); // end must be after begin
38
38
assert (end-begin >= width); // Buffer must be large enough
@@ -62,7 +62,7 @@ inline auto ConvertToChars(char* begin, char* end, size_t value, int width=1) ->
62
62
* converts a value 'v' to a string. Uses dragonbox for formatting.
63
63
*/
64
64
template <typename T>
65
- auto FpToString (T v, int precision = 0 ) -> std::string {
65
+ std::string FpToString (T v, int precision = 0 ) {
66
66
// assert(precision > 0);
67
67
// hardcoded constant, at which exponent should switch to a scientific notation
68
68
int const lowerExponentThreshold = -5 ;
@@ -184,18 +184,18 @@ auto FpToString(T v, int precision = 0) -> std::string {
184
184
}
185
185
}
186
186
187
- inline auto FpToString (float v, size_t precision = 0 ) -> std::string {
187
+ inline std::string FpToString (float v, size_t precision = 0 ) {
188
188
return detail::fp_formatting::FpToString (v, precision);
189
189
}
190
190
191
- inline auto FpToString (double v, size_t precision = 0 ) -> std::string {
191
+ inline std::string FpToString (double v, size_t precision = 0 ) {
192
192
return detail::fp_formatting::FpToString (v, precision);
193
193
}
194
194
195
195
/* *
196
196
* dragonbox only works for floats/doubles not long double
197
197
*/
198
- inline auto FpToString (long double v, size_t precision = std::numeric_limits<long double >::max_digits10) -> std::string {
198
+ inline std::string FpToString (long double v, size_t precision = std::numeric_limits<long double >::max_digits10) {
199
199
std::stringstream ss;
200
200
ss.imbue (std::locale (" C" ));
201
201
ss.precision (precision);
0 commit comments