From 11adace1eabb2c4276e936af685a66c0301c75f9 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 1 Jul 2022 16:52:54 -0700 Subject: [PATCH] Fix small oversight (src_loc::here() -> src_loc{nullptr, 0}). --- include/pybind11/detail/descr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/pybind11/detail/descr.h b/include/pybind11/detail/descr.h index e5a5a77e2..fca4a60d6 100644 --- a/include/pybind11/detail/descr.h +++ b/include/pybind11/detail/descr.h @@ -122,7 +122,9 @@ struct int_to_str : int_to_str {}; template struct int_to_str<0, Digits...> { // WARNING: This only works with C++17 or higher. - static constexpr auto digits = descr(src_loc::here(), ('0' + Digits)...); + // src_loc not tracked (irrelevant in this situation, at least at the moment). + static constexpr auto digits + = descr(src_loc{nullptr, 0}, ('0' + Digits)...); }; // Ternary description (like std::conditional)