descr<> fix for int-to-string conversion

This commit is contained in:
Wenzel Jakob 2016-07-19 11:59:37 +02:00
parent 61352e504d
commit 4a87933be9
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ constexpr typename std::enable_if<!B, descr<Size2 - 1, 0>>::type _(char const(&)
return _(text2);
}
template <size_t Size> auto constexpr _() {
template <size_t Size> auto constexpr _() -> decltype(int_to_str<Size / 10, Size % 10>::digits) {
return int_to_str<Size / 10, Size % 10>::digits;
}