ranges: xToString: replace ',' by '.' (german locales seem to be used here now)
This commit is contained in:
parent
bebc7ce35c
commit
4683c9e85c
1 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <vector>
|
||||
#include <array>
|
||||
#include <tuple>
|
||||
#include <algorithm>
|
||||
|
||||
#include "ranges/dynamic_meta.h"
|
||||
|
||||
|
@ -40,7 +41,9 @@ namespace MultiArrayHelper
|
|||
template <typename T>
|
||||
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>
|
||||
|
|
Loading…
Reference in a new issue