mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
descr<> fix for int-to-string conversion
This commit is contained in:
parent
61352e504d
commit
4a87933be9
@ -93,7 +93,7 @@ constexpr typename std::enable_if<!B, descr<Size2 - 1, 0>>::type _(char const(&)
|
|||||||
return _(text2);
|
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;
|
return int_to_str<Size / 10, Size % 10>::digits;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user