ranges: xToString: replace ',' by '.' (german locales seem to be used here now)

This commit is contained in:
Christian Zimmermann 2019-12-11 15:16:50 +01:00
parent bebc7ce35c
commit 4683c9e85c

View file

@ -6,6 +6,7 @@
#include <vector> #include <vector>
#include <array> #include <array>
#include <tuple> #include <tuple>
#include <algorithm>
#include "ranges/dynamic_meta.h" #include "ranges/dynamic_meta.h"
@ -40,7 +41,9 @@ namespace MultiArrayHelper
template <typename T> template <typename T>
inline std::string xToString(const T& x) inline std::string xToString(const T& x)
{ {
return std::to_string(x); std::string out = std::to_string(x);
std::replace(out.begin(), out.end(), ',', '.');
return out;
} }
template <size_t N> template <size_t N>