Commit 753cb798 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed compil

parent 9c16f13a
......@@ -113,11 +113,11 @@ namespace Private {
private:
template<std::size_t... Index, typename Int = int, typename std::enable_if<Int(Value) >= 0, int>::type* = nullptr>
constexpr StaticIntStringHelper (const IndexSequence<Index...> &) :
raw{ ('0' + Value / pow10(N - Index - 2) % 10 )..., '\0' } {}
raw{ char('0' + Value / pow10(N - Index - 2) % 10 )..., '\0' } {}
template<std::size_t... Index, typename Int = int, typename std::enable_if<Int(Value) < 0, int>::type* = nullptr>
constexpr StaticIntStringHelper (const IndexSequence<Index...> &) :
raw{ '-', ('0' + abs(Value) / pow10(N - Index - 3) % 10 )..., '\0' } {}
raw{ '-', char('0' + abs(Value) / pow10(N - Index - 3) % 10 )..., '\0' } {}
};
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment