mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 17:32:37 +00:00
Fix small oversight (src_loc::here() -> src_loc{nullptr, 0}).
This commit is contained in:
parent
68b155a10c
commit
11adace1ea
@ -122,7 +122,9 @@ struct int_to_str : int_to_str<Rem / 10, Rem % 10, Digits...> {};
|
|||||||
template <size_t... Digits>
|
template <size_t... Digits>
|
||||||
struct int_to_str<0, Digits...> {
|
struct int_to_str<0, Digits...> {
|
||||||
// WARNING: This only works with C++17 or higher.
|
// WARNING: This only works with C++17 or higher.
|
||||||
static constexpr auto digits = descr<sizeof...(Digits)>(src_loc::here(), ('0' + Digits)...);
|
// src_loc not tracked (irrelevant in this situation, at least at the moment).
|
||||||
|
static constexpr auto digits
|
||||||
|
= descr<sizeof...(Digits)>(src_loc{nullptr, 0}, ('0' + Digits)...);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Ternary description (like std::conditional)
|
// Ternary description (like std::conditional)
|
||||||
|
Loading…
Reference in New Issue
Block a user